How to sett up hibernate to use Glassfish connection pool?
Posted
by jschoen
on Stack Overflow
See other posts from Stack Overflow
or by jschoen
Published on 2010-03-24T14:30:15Z
Indexed on
2010/03/24
14:33 UTC
Read the original article
Hit count: 355
I have set up a connection pool in Glassfish with a jndi resource for it also setup. I am stumped on how to configure hibernate to go get it.
I have come across alot of write ups to configure it to use C3P0 connection pool. Well I am lost. I found that I need to set:
hibernate.connection.datasource
hibernate.jndi.url
hibernate.jndi.class
hibernate.connection.username
hibernate.connection.password
- Would datasource be the same as the
hibernate.connection.datasource
set in the connection pool? - What would hibernate.jndi.class be?
- Are hibernate.connection.username and hibernate.connection.password for the connection to the database or to the appserver? I assume this is to the database, but why do I need them since that is all set in the appserver?
© Stack Overflow or respective owner