Unable to start debugging on the web server - CHAPTER 2 Starting a project deployment on other
CHAPTER 2 Starting a project deployment on other application servers that support JMX should be similar, and you can adapt and port the JBoss configuration files. 2.5 Summary In this chapter, you have completed a first Hibernate project. We looked at how Hibernate XML mapping files are written and what APIs you can call in Hibernate to interact with the database. We then introduced Java Persistence and EJB 3.0 and explained how it can simplify even the most basic Hibernate application with automatic metadata scanning, standardized configuration and packaging, and dependency injection in managed EJB components. If you have to get started with a legacy database, you can use the Hibernate toolset to reverse engineer XML mapping files from an existing schema. Or, if you work with JDK 5.0 and/or EJB 3.0, you can generate Java application code directly from an SQL database. Finally, we looked at more advanced Hibernate integration and configuration options in a Java EE environment integration that is already done for you if you rely on JPA or EJB 3.0. A high-level overview and comparison between Hibernate functionality and Java Persistence is shown in table 2.1. (You can find a similar comparison table at the end of each chapter.) Table 2.1 Hibernate and JPA comparison Hibernate Core Java Persistence and EJB 3.0 Integrates with everything, everywhere. Flexible, but sometimes configuration is complex. Works in Java EE and Java SE. Simple and standardized configuration; no extra integration or special configuration is necessary in Java EE environments. Configuration requires a list of XML mapping files or annotated classes. JPA provider scans for XML mapping files and annotated classes automatically. Proprietary but powerful. Continually improved native programming interfaces and query language. Standardized and stable interfaces, with a sufficient subset of Hibernate functionality. Easy fallback to Hibernate APIs is possible. In the next chapter, we introduce a more complex example application that we ll work with throughout the rest of the book. You ll see how to design and implement a domain model, and which mapping metadata options are the best choices in a larger project.
From our experience, we can recommend PHP5 Web Hosting services, if you need affordable webhost to host and run your web application.