This content has been marked as final.
Show 2 replies
-
1. Re: JbpmThreadServlet and member threads
aguizar Jan 25, 2007 5:12 PM (in response to brado)You're right, a container is free to instantiate a servlet class multiple times as it sees fit.
Recently, a customer proposed us to reimplement the JbpmThreadsServlet as a servlet context listener, which is guaranteed to execute only once. I filed the request as JBPM-742, but haven't found the time to implement it yet.
For backwards compatibility, static variables are not the right choice because you could have thread servlets in several web modules. The servlet context comes in handy here. -
2. Re: JbpmThreadServlet and member threads
brado Jan 25, 2007 5:38 PM (in response to brado)Alex,
Thanks for the reply. Yeah, it would seem that the ServletContextListener would probably be the logical way to implement it. Seems simple enough -- in fact, I'll probably have to do that for my application anyway.
Brad