JBoss Community

Persistence unit name for jBPM5

created by mark boletti in jBPM - View the full discussion

Hi all !

I'd like to create my first web application which uses jbpm5 engine. I've added in the META-INF folder the persistence.xml containing the JPA configuration, however if I name the persistence unit org.jbpm.persistence.jpa the deployment fails because the JBPM console is already using that unit name:

 

DEPLOYMENTS IN ERROR:

  Deployment "vfsfile:/D:/jbpm-installer/jboss-5.1.0.GA/server/default/deploy/jbpm5.war/" is in error due to the following reason(s): java.lang.IllegalStateException: persistence.unit:unitName=#org.jbpm.persistence.jpa is already installed.

 

Is it possible to use another persistence unit name to jBPM5 application ? (If so, how does the jBPM engine know which is the persistence unit name used? I couldn't find this information in the docs)

Thanks a lot

Mark

Reply to this message by going to Community

Start a new discussion in jBPM at Community