Hello Rainer, anonymous wrote : you realy have divided your functionality so far that you concurrent threads have NO knowledge
The threads do not have any knowledge of any jBPM stuff. They simply run what ever they are asked to and when completed notifies the "waiting" thread that it can signal now. All this works fine, I have not seen any problems. The problems I am having to do has to do with saving and retriving process instance, but nothing to do with threads. May be you can help me. I have one jbpmSession that I open that is used in the main class (the engine) only and it stays open till the process instance completes (normally or abnormally). I also have a helper application that opens its own jbpmSession to save process instance, which it closes once it is done. The helper is used both by the main engine and the fork handler for saving process instance. When I try to save process instance from the engine using the helper, I get the following exception | java.lang.RuntimeException: couldn't save process instance '[EMAIL PROTECTED]' | org.hibernate.collection.AbstractPersistentCollection.setCurrentSession(AbstractPersistentCollection.java:410) | org.hibernate.event.def.OnUpdateVisitor.processCollection(OnUpdateVisitor.java:40) | org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:101) | org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:61) | org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:55) | org.hibernate.event.def.AbstractVisitor.process(AbstractVisitor.java:123) | org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:267) | org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:216) | org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93) | org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) | org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:520) | org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:513) | org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:509) | org.jbpm.db.GraphSession.saveProcessInstance(GraphSession.java:203) | My guess is that it has to do with the session that I opened in main, which is used to save process definition. You tell me. Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925718#3925718 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925718 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
