Mit dem Verbindungs-Pool in JPA

I hava eine eigenständige JPA (Hibernate) - MySQL-Anwendung.

Meine persistence.xml sieht aus wie:

     <persistence-unit name="JPAProj" transaction-type="RESOURCE_LOCAL">
            <!-- Persistence provider -->
            <provider>
                org.hibernate.ejb.HibernatePersistence
            </provider>
          ....
          <properties>
                    <property name='hibernate.show_sql' value='true'/>
                    <property name='hibernate.format_sql' value='true'/>
                    <property name='hibernate.dialect' value='org.hibernate.dialect.MySQL5InnoDBDialect'/>
                    <property name='hibernate.hbm2ddl.auto' value='update'/>

                    <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/>
                    <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost/classicmodels"/>
                    <property name="javax.persistence.jdbc.user" value="someuser"/>
                    <property name="javax.persistence.jdbc.password" value=""/>
           </properties>
     </persistence-unit>

Ich möchte an einem Connection Pool (sagen wir Apache DBCP) in dieser Anwendung, welche änderungen muss ich machen persistence.xml?

Ich nehme an, Sie haben auch hier der Frühling?
stellt sich die Frage, stackoverflow.com/questions/3944809/...

InformationsquelleAutor Jasper | 2013-04-26

Schreibe einen Kommentar