[jboss-user] [JBoss jBPM] - Re: JbpmThreadServlet and member threads
alex.guizar@jboss.com
do-not-reply at jboss.com
Thu Jan 25 17:12:28 EST 2007
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006565#4006565
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006565
More information about the jboss-user
mailing list