JBoss Community

Re: jBPM 5.2 transaction issues in JBoss 5.1

created by B Cavlin in jBPM - View the full discussion

I have resolved issue by adding this to persistence.xml

 

<property name="jboss.entity.manager.factory.jndi.name" value="java:/jBPMManagerFactory"/>

 

I ma obtaining factory like this:

 

emf = (EntityManagerFactory) new javax.naming.InitialContext().lookup("java:/jBPMManagerFactory"); instead of Persistence.createEntityManagerFactory(properties.getProperty("persistence.persistenceunit.name"));

 

Seems to work fine for now.

Reply to this message by going to Community

Start a new discussion in jBPM at Community