JBoss Community

Re: Using MySQL (or other database) with jBPM5

created by Maciej Swiderski in jBPM - View the full discussion

Mylos Kathos wrote:

 

In the documentation it's stated to add a persistence.xml file to your application, however I couldn't find this file in the jbpm 5 admin consoles, just a datasource deployed named testDS1-ds.xml.

I don't remember exactly where installer puts but my first guess would be that is should be in the console server package (for instance jbpm-gwt-console-server-war/WEB-INF/classes/META-INF).

 


Mylos Kathos wrote:

Also, how does the jBPM engine understand that the persistence.xml provided in my Web application is the one used by the jBPM 5 engine ? ( I guess it needs to be named "org.jbpm.persistence.jpa") ?

Yes, you're right. Persistence unit is resolved by name while creating entity manager factory by jBPM console.

 

HTH

Reply to this message by going to Community

Start a new discussion in jBPM at Community