I need the code to add JNDI name to achive connection pooling in hibernate. I have configured the connetion pooling in Jboss server with the JNDI name as \"EmployeeDB\"
The datasource JDNI name configured in the Jboss server is specified by the properties hibernate.connection.datasource.
hibernate.connection.datasource
The basic hibernate.cfg.xml should look like :
hibernate.cfg.xml
java:comp/env/jdbc/EmployeeDB org.hibernate.dialect.MySQLDialect