In Hibernate to configure we uses a file i.e. hibernate.cfg.xml. The hibernate configure file
Hibernate uses a file by name hibernate.cfg.xml. This file makes the link between the pool and establishes the required environment. In hibernate, you can configured manage and non-managed hibernate environments. Mostly there are two types of hibernate environment i.e. Managed Environments and Non-managed Environments.
The managed environment offers application servers such as JBoss, Weblogic and WebSphere. Where as the Non-enviornment hibernate offers a basic configuration template. Tomcat is one of the best examples of Non-managed environment.
For more details about Hibernate configure visit this: http://www.roseindia.net/hibernate/HibernateConfig.shtml