Chapter 7. Configuring enterprise applications
This chapter covers
- Packaging and deploying enterprise applications
- Configuring the EJB server
- Configuring the EJB containers
- Configuring JPA / Hibernate
- EJB remoting and JNDI
- EJB security
Many small web applications can be written entirely using JSPs and servlets, packaged as a WAR file, and deployed into JBoss or even a JSP/servlet container such as Tomcat. But you should consider several limitations about this architecture if your application is going to grow to be more than a simple web application. First, if your application is going to have multiple interfaces or integration points, you’ll want to separate your business logic from your web presentation code by pulling the logic out of your servlets. Decoupling the business logic from the presentation allows you, for example, to enable a travel booking site to use Web Services to call the same business logic as that used by your hotel reservations web application. Simple web applications also need a lot of boilerplate application logic that’s practically the same for almost any enterprise-ready application such as security, remoting, and transaction management.