users@glassfish.java.net

Re: Hibernate + ConnectionPool

From: <glassfish_at_javadesktop.org>
Date: Tue, 24 Aug 2010 12:55:31 PDT

The first question is, do you want to use Hibernate as a JPA persistence provider (so your application works with the javax.persistence API), or do you want to use the native Hibernate API (org.hibernate.*)?

The discussion so far only covers the second case.

For the first case, see http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html_single/#setup-configuration-packaging.

You simply configure the connection pool and the JDBC JNDI resource via the Glassfish Admin Console, and then you reference the data source via the JNDI name in your persistence.xml.

Best regards,
Harald
[Message sent by forum member 'hwellmann']

http://forums.java.net/jive/thread.jspa?messageID=480909