[jboss-dev-forums] [Design of JBoss jBPM] - Re: cannot deploy processdefinition from GPD via jbpm-enterp

jeffdelong do-not-reply at jboss.com
Wed Feb 21 08:16:28 EST 2007


Opps, got left out somehow. What I meant was that:


  |        <field name="isCurrentSessionEnabled"><true /></field>
  | 

needed to be set to false.

With CMTransactionFactory, Hibernate expects a transaction to already be started. When uploading via the console, this does not appear to be the case. So JTATransactionFactory is required, which means Hibernate will start the transaction if one does not already exist.

isCurrentSessionEnabled (getCurrentSession() )does not appear to get a current session if a transaction is not already in progress, even with JTATransactionFactory set. This may be a defect in Hibernate? My recommendation in this situation is to inject the session into the jbpmContext via jbpmContext.setSession(session). Granted this is more work for the developer, so getting getCurrentSession to work would be preferable.

This is simple to test. Just deploy jbpm-enterprise.ear to JBoss (I tested with 4.0.5), start it, and attempt to deploy a processdefinition from the GPD.

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

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



More information about the jboss-dev-forums mailing list