if you use Java 5, in your web application class:


public class YourApplication extends WebApplication {


  public static final ExecutorService THREAD_POOL =
Executors.newCachedThreadPool();

 @Override
  protected void onDestroy() {
    super.onDestroy();
    THREAD_POOL.shutdownNow();

  }

}


This is the modified version of AjaxLazyLoadPanel.java that I wrote: 
https://gist.github.com/706011 AjaxLazyLoadThreadPanel.java 


Remove the ThreadLocalUserContext reference but don't forget to pass your
version of ThreadLocal to the new thread if you use one in your web
application.  Oh, and this was a prototype that never got used (we optimized
the database query instead), so test the heck out of it and use this as more
of a guide.


Oh, and in the this 
http://apache-wicket.1842946.n4.nabble.com/multiple-rendering-at-same-time-td1926023.html#a1926028
thread  Eelco has a good example of a resource if you decide to go that
route.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-ACTIVE-tp3047890p3049862.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to