On Wed, Jun 10, 2009 at 11:34 AM, Frank Tegtmeyer<f...@fte.to> wrote: > I think you hit the problem here. The example I used (in German at > http://rattlab.net/2008/10/persistenz-fur-den-feedreader/) implies > that every Request uses its own thread and I never expected threads to > be reused. I used simple initialization of the variable and closed the > EntityManager in onEndRequest(). > That highlights why I didn't like the ThreadLocal() approach - it > depends on implementation details somewhere out of my control (and > knowledge).
The specification says that threads may be reused. So, it's not really an implementation-specific thing. Most servers implement their server threads this way, as they should. You should expect them to reuse threads. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org