[jboss-user] [JBoss jBPM] - Re: RelationContext.findProcessDefinition after CurrentJbpm

bertrand.njiipwo do-not-reply at jboss.com
Thu Jan 18 07:53:57 EST 2007


Hello Together,

i found out the cause of this. It was not a good idea to use the currentJpbmContext  to make a data base lookup. Instead of: 
 JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext(); is better

JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); //
This will change the jpbmContext object and have some issue when resuming the process execution later.

So before loocking up the data base first get a new jbpmContext object, performe any operation on the DB and close it by leaving the methode.


Hope it could help others encoutering the same problem.


Bertrand

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003281#4003281

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003281



More information about the jboss-user mailing list