CHAPTER 2 Starting a project The exporter (Photography web hosting)

CHAPTER 2 Starting a project The exporter can be parameterized with a set of custom FreeMarker templates, and you can generate anything you want with this approach. Templates that produce a complete runable skeleton application with the JBoss Seam framework are bundled in the Hibernate Tools. You can get creative with the import and export functionality of the tools. For example, you can read annotated Java classes with and export them with . This allows you to develop with JDK 5.0 and the more convenient annotations but deploy Hibernate XML mapping files in production (on JDK 1.4). Let s finish this chapter with some more advanced configuration options and integrate Hibernate with Java EE services. 2.4 Integration with Java EE services We assume that you ve already tried the Hello World example shown earlier in this chapter and that you re familiar with basic Hibernate configuration and how Hibernate can be integrated with a plain Java application. We ll now discuss more advanced native Hibernate configuration options and how a regular Hibernate application can utilize the Java EE services provided by a Java EE application server. If you created your first JPA project with Hibernate Annotations and Hibernate EntityManager, the following configuration advice isn t really relevant for you you re already deep inside Java EE land if you re using JPA, and no extra integration steps are required. Hence, you can skip this section if you use Hibernate EntityManager. Java EE application servers such as JBoss AS, BEA WebLogic, and IBM Web- Sphere implement the standard (Java EE-specific) managed environment for Java. The three most interesting Java EE services Hibernate can be integrated with are JTA, JNDI, and JMX. JTA allows Hibernate to participate in transactions on managed resources. Hibernate can look up managed resources (database connections) via JNDI and also bind itself as a service to JNDI. Finally, Hibernate can be deployed via JMX and then be managed as a service by the JMX container and monitored at runtime with standard JMX clients. Let s look at each service and how you can integrate Hibernate with it.
Check Tomcat Web Hosting services for best quality webspace to host your web application.