Example & Tutorial understanding programming in easy ways.

What are different environments to configure hibernate?

Hibernate can be configured in two basic Environments:

1. Managed Environments: In this kind of Environments everything from Data Base Connection, transaction boundaries, security levels and all are defined.

Example of this kind of Environment : Downloads latest Hibernate file and add in the Hibernate .zar file and work easily.Following is the list of the packages/libraries required by Hibernate and we need to install them before starting with Hibernate. To install these packages we have to copy library files from /lib into your CLASS PATH, and change your CLASS PATH variable accordingly.

dom4j-XML parsing.
Xalan-XSLT Processor.
cglib- The Xerces Java Parser
cglib - Appropriate change to java classes at runtime
log4j -  Logging, Framewrok.
Commons - Logging, Email etc.
SLF4J - Logging Facade for Java

2. Non - Managed Environments: In this kind of Environments provide a basic configuration template. That mean we need to define to all about the for the making connection with the databases.

Example of this kind of Environment : Tomcat is one of the best examples that provide this kind of Environment.

Read More →