[jboss-user] [JBoss jBPM] - Re: How to tell if token is waiting?
estaub
do-not-reply at jboss.com
Tue Jun 12 15:36:44 EDT 2007
Jon,
Threads don't share hibernate caches on the same process instance. If another thread looks at the token, it's going to have fetched it independently from the database.
The database is updated when the token reaches a wait state.
>> I'm still trying to understand what it means that the process executes in the thread that signals the process instance.
Me too. If subsequent actionhandlers do a signal or leaveNode, the execution is recursive. So in a loop with no wait states, each iteration grows the stack (and everything it refers to on the heap). This seems ugly, but I can't decide how bad it is. While a QA team would run into it quickly, I'm not sure it has much real-world consequence.
-Ed Staub
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053715#4053715
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053715
More information about the jboss-user
mailing list