"tobysaville" wrote : Can you please explain what I am doing wrong here? You are using the same persistent objects in two different hibernate sessions, which would screw the automatic change tracking and is unacceptable. anonymous wrote : can I start the transaction instance in the assignment handler? if not, where do I start it? You shouldn't start it there. Just use the same transaction you began before the signal(). anonymous wrote : do I save the process instance in the assignment handler (or from any other class that is part of the process instance execution)? No. Save it after you signal(): JbpmSession session = JbpmSessionFactory.getInstance().openJbpmSessionAndBeginTransaction() | GraphSession graphSession = session.getGraphSession(); | ProcessDefinition def = graphSession.findLatestProcessDefinition(DEF_NAME); | ProcessInstance pi = new ProcessInstance(def); | pi.signal(); | graphSession.saveProcessInstance(pi); | session.commitTransactionAndClose(); anonymous wrote : How can I have only 1 session factory thats used by all classes? First build a unified configuration with all your mappings as described in section 3.1 of the user guide. Hibernate recommends a static singleton if your JNDI context is not bindable. See section 1.2.5 for more details.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915633#3915633 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915633 ------------------------------------------------------- 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
