Re: Question about threads inside wicket pages

2009-08-20 Thread Jeremy Thomerson
Right - the session, etc, is available via a ThreadLocal. So, it's not available in a new thread. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Aug 19, 2009 at 11:42 PM, Ashika Umanga Umagiliya wrote: > Hi Jeremy, > I tried to call "Page.info()" inside the new thread created by ax

Re: Question about threads inside wicket pages

2009-08-19 Thread Ashika Umanga Umagiliya
Hi Jeremy, I tried to call "Page.info()" inside the new thread created by axis2client , then it gives the message : "EXCEPTION:you can only locate or create sessions in the context of a request cycle" I guess,this means I must change the page data inside the same thread right? Thanks i

Re: Question about threads inside wicket pages

2009-08-19 Thread Jeremy Thomerson
I'm not 100% sure, but I'm pretty sure that it would depend on your servlet container more than Wicket. The threads for handling requests are spun up by the servlet container before Wicket is ever handed the request. And typically these threads are pooled - so it wouldn't be *destroyed*. But you

Question about threads inside wicket pages

2009-08-19 Thread Ashika Umanga Umagiliya
Greetings all, Please refer to image at : http://i26.tinypic.com/11qi6o7.jpg I am going to invoke a webservice using Axis2 Client,asynchronically.To getback the results, I am using a Callback handler in axis2. Within my page, I am going to create the Callback object (axisCallbackHandler in p