[jboss-user] [JBoss jBPM] - Re: multiple jobexecutor threads?
estaub
do-not-reply at jboss.com
Tue May 29 11:04:29 EDT 2007
Alex,
Can you be more specific?
I read your note as saying you changed the method signature to
protected synchronized Collection acquireJobs()
but that shouldn't help, because it will synchronize on the thread object. But this won't prevent other threads from hitting it at the same time. Unless acquireJobs() is being called from a subclass of JobExecutorThread, the only place it is called from is run(), so there's not even a remote possibility of a cross-thread invocation somehow.
If I understood you correctly, and this made the problem go away, I suspect it's just hiding for a while...
-Ed Staub
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049381#4049381
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049381
More information about the jboss-user
mailing list