Integrate BoneCP and EclipseLink with LOCAL_RESOURCE transaction-type [message #1718390] |
Wed, 23 December 2015 04:19  |
Eclipse User |
|
|
|
I am setting up a minimal working example where I use EclipseLink in a Java EE (JSF) project. My example works perfectly with the following configuration:
persistence.xml
<persistence
version="2.0"
...
>
<persistence-unit name="issat_PU_Local" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>pro.entity.Utilisateur</class>
<properties>
<property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/issat" />
<property name="javax.persistence.jdbc.user" value="java" />
<property name="javax.persistence.jdbc.password" value="JaVa" />
<property name="eclipselink.logging.level.sql" value="FINE" />
<property name="eclipselink.logging.parameters" value="true"/>
</properties>
</persistence-unit>
</persistence>
Since I don't want to use JTA I am using RESOURCE_LOCAL as transaction type and perfectly leaving with "manually" handling transaction inside my DAO.
I now want to use BoneCP connection pool with my example. How should I precisely modify my persistence.xml to do that?
I found many configuration examples in the internet using also Hibernate, but I want to stay with EclipseLink.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28689 seconds