What exactly is the "solution"? 

I've read the code and it looks like the Application would still not be 
available in the runner thread.

D/

On May 28, 2010, at 3:00 PM, Alex Objelean wrote:

> 
> The link you have found was a workaround to avoid the problem. You can see
> the actual problem in this example:
> 
> http://pastebin.com/0GwGXkmr  
> 
> The usage example:
> 
> @SpringBean
> private Service service;
> new ProcessExecutorPanel("associatedFilesMigration") { 
>      @Override 
>      protected void execute() { 
>           //a business logic method which takes a lot time to complete 
>           //in this context Application is not available and it complains
> that Application is not attached to current thread 
>           service.startMigration(); 
>      } 
> }; 
> 
> -- 
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/using-injected-services-in-a-child-thread-tp2233924p2235118.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to