[jboss-user] [JBoss jBPM] - Re: JbpmContext: when to create new vs. get current

2006-10-18 Thread WangXin
I read the source code a little. It seems the current context is got from current thread stack. If the context is not avaialble, a new context will be allocated from the stack. I understand the context may not be re-entry, but it should be safe to use in the thread since each thread has differen

[jboss-user] [JBoss jBPM] - Re: JbpmContext: when to create new vs. get current

2006-10-14 Thread GrimShieldsson
I'm using JBPM in a web app, and using the filter provided in JBPM to open and close the context. getCurrent, according to the documentation gets the current context for the currently executing thread. If you've gotten the context once, you shouldn't have to get it again in the same thread, un

[jboss-user] [JBoss jBPM] - Re: JbpmContext: when to create new vs. get current

2006-10-13 Thread brado
Perhaps I've been a bit obtuse, and haven't properly phrased my question. But since its been over a month, and its obvious that others have the same question, I'll try to rephrase my question for jBPM developers and those who would consider themselves "experts" in jBPM: How is it possible to us

[jboss-user] [JBoss jBPM] - Re: JbpmContext: when to create new vs. get current

2006-10-13 Thread brado
Jean, Yes, that helps -- thanks for the reply. However, it still doesn't answer the big question which is whether JbpmContext is reentrant or not. If it is not reentrant, then I want to know what the purpose of the JbpmConfiguration.getCurrentContext() method is. If JbpmConfiguration is reentr

[jboss-user] [JBoss jBPM] - Re: JbpmContext: when to create new vs. get current

2006-10-13 Thread JeanGuyer
anonymous wrote : 1) It appears that any saving of data to the database (such as process instance state) doesn't commit until the JbpmContext is closed. This then seemed to suggest that a JbpmContext needed to be created and closed each time data needed to be saved to the database. i create a

[jboss-user] [JBoss jBPM] - Re: JbpmContext: when to create new vs. get current

2006-10-13 Thread jagadeeshrao
I am also facing this problem. JD View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978092#3978092 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978092 ___ jboss-user mailing l

[jboss-user] [JBoss jBPM] - Re: JbpmContext: when to create new vs. get current

2006-10-10 Thread jstachera
It would be great if somebody could answer this question ^ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977208#3977208 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977208

[jboss-user] [JBoss jBPM] - Re: JbpmContext: when to create new vs. get current

2006-09-23 Thread Jinguo.Yin
I fall across this problem also; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973705#3973705 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973705 ___ jboss-user mailing lis

[jboss-user] [JBoss jBPM] - Re: JbpmContext: when to create new vs. get current

2006-09-21 Thread brado
Does anyone have any inkling about the answer to this. This still seems to be a question for which the answer is elusive. Thanks. Brad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973452#3973452 Reply to the post : http://www.jboss.com/index.html?module=