How and Where to add JNDI for Hibernate?
问题 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" How to configure it in hibernate.cfg.xml ?? Plez give me the code for hibernate.cfg.xml if i am using Hibernate 4 Final release. 回答1: The datasource JDNI name configured in the Jboss server is specified by the properties hibernate.connection.datasource . The basic hibernate.cfg.xml should look like : <?xml version='1.0' encoding