Hello Rainer
Do you mean locking on process instance in this method or everywhere the
process instance is used? Because my original code was doing just that, as
follows:
| public static void persistPI(ProcessInstance pi)
| throws Exception
| {
| synchronized(pi) {
| JbpmSessionFactory factory = JbpmSessionFactory.getInstance();
| if (factory == null)
| {
| System.err.println("Factory is null....");
| return;
| }
| JbpmSession jbpmSession = factory.openJbpmSession();
| jbpmSession.beginTransaction();
| try
| {
| jbpmSession.getGraphSession().saveProcessInstance(pi);
| jbpmSession.commitTransaction();
| }
| catch (Exception e)
| {
| e.printStackTrace();
| jbpmSession.rollbackTransaction();
| throw e;
| }
| finally
| {
| jbpmSession.close();
| }
| }
| }
|
and I was still getting the same exception. The only other use of process
instance in the code that is running concurrently is
| ContextInstance ci = token.getProcessInstance().getContextInstance();
| synchronized(ci)
| {
| ci.createVariable(_node_,joinNode,parentToken);
| ci.notify();
| }
|
Does 'token.signal()' change process log list?
Thanks
Raj
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922349#3922349
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922349
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user