Community

Injected hibernate SessionFactory is not used by jBPM 4.3?

reply from jordi elies in jBPM - View the full discussion

Hi Guido,

Guido Helmers wrote:

 

I do see that in HibernateSessionDescriptor, there's a 'factoryName' property. If this property is set, it will lookup the SessionFactory in the 'transaction' wireContext under that 'factoryName'. Two questions:
  1. Can I set the 'factoryName' somehow, from a jbpm configuration file? How?

 

I was debbugging the jbpm internal code and I found it when jbpm is parsing the config files. You should put the name of the session factory in the jbpm.tx.spring.cfg.xml:

 

{code:xml}

...

  <transaction-context>
    <transaction type="spring" />
    <hibernate-session current="true" factory="sncSessionFactoryWF"/>
  </transaction-context>
...

{code:xml}

 

Hope this helps!

 

Thanks {user:username=rebody} for the solution for transaction-manager name!

Reply to this message by going to Community

Start a new discussion in jBPM at Community