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?