I'm using EclipseLink 2.3, of GlassFish 3.1.1, for a simple JPA test with MySQL 5.6.12 and MySQL Connector/J 5.1.25. It works, but in a long running process: about 4-5 minutes. After setting the property 'eclipselink.target-database' into persistence.xml, now it takes about 2 minutes.
Here the fragment of log where you can see the delay:
Running org.consel.jc.jpa.test.JpaTest
...
[EL Config]: 2013-07-12 09:51:27.986--ServerSession(8831815)--Connection(11317592)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
platform=>MySQLPlatform
user name=> "root"
datasource URL=> "jdbc:mysql://localhost:3306/sm"
))
[EL Config]: 2013-07-12 09:53:33.157--ServerSession(8831815)--Connection(15177785)--Thread(Thread[main,5,main])--Connected: jdbc:mysql://localhost:3306/sm
User: root@localhost
Database: MySQL Version: 5.6.12
Driver: MySQL Connector Java Version: mysql-connector-java-5.1.25 ( Revision: ${bzr.revision-id} )
[EL Finest]: 2013-07-12 09:53:33.167--ServerSession(8831815)--Connection(15177785)--Thread(Thread[main,5,main])--Connection acquired from connection pool [default].
[EL Finest]: 2013-07-12 09:53:33.167--ServerSession(8831815)--Connection(15177785)--Thread(Thread[main,5,main])--Connection released to connection pool [default].
...
Moreover I use transaction-type="RESOURCE_LOCAL" for manage the transaction via EclipseLink. How can I investigate for search the causes? Thanks