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:
- 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!