On Fri, 28 Sep 2012 15:41:50 -0300, Alex Kotchnev <akoch...@gmail.com>
wrote:
In my application, I send html emails which contain links to the
application. I use the pageRenderLinkSource.createPageRenderLink to
generate the URLs from within the application.
So far, so good. The trouble begins when I tried to make the email
sending
asynchronous : that is, the application just queues them up, and sometime
later a message listener picks up the email requests from the queue, and
sends the actual emails. The problem is that by the time the emails are
being generated, there is no current request associated with the current
thread; hence, the link generation fails miserably (see stack trace, the
exception is thrown when I call
pageRenderLinkSource.createPageRenderLink).
Any thoughts on how I could get around this ? Is there some other way
that
I could generate a link that doesn't rely on requestglobals ?
I know it's not an answer, but you could create the Link and store it
somewhere before queuing the e-mail. Of course, this will work just if you
already know which pages to link before merging the template.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org