Book description
Consisting of a number of well-known open source products, JBoss is more a family of interrelated services than a single monolithic application. But, as with any tool that's as feature-rich as JBoss, there are number of pitfalls and complexities, too.
Most developers struggle with the same issues when deploying J2EE applications on JBoss: they have trouble getting the many J2EE and JBoss deployment descriptors to work together; they have difficulty finding out how to get started; their projects don't have a packaging and deployment strategy that grows with the application; or, they find the Class Loaders confusing and don't know how to use them, which can cause problems.
JBoss at Work: A Practical Guide helps developers overcome these challenges. As you work through the book, you'll build a project using extensive code examples. You'll delve into all the major facets of J2EE application deployment on JBoss, including JSPs, Servlets, EJBs, JMS, JNDI, web services, JavaMail, JDBC, and Hibernate. With the help of this book, you'll:
- Implement a full J2EE application and deploy it on JBoss
- Discover how to use the latest features of JBoss 4 and J2EE 1.4, including J2EE-compliant web services
- Master J2EE application deployment on JBoss with EARs, WARs, and EJB JARs
- Understand the core J2EE deployment descriptors and how they integrate with JBoss-specific descriptors
- Base your security strategy on JAAS
Written for Java developers who want to use JBoss on their projects, the book covers the gamut of deploying J2EE technologies on JBoss, providing a brief survey of each subject aimed at the working professional with limited time.
If you're one of the legions of developers who have decided to give JBoss a try, then JBoss at Work: A Practical Guide is your next logical purchase. It'll show you in plain language how to use the fastest growing open source tool in the industry today. If you've worked with JBoss before, this book will get you up to speed on JBoss 4, JBoss WS (web services), and Hibernate 3.
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- About the Author
- Preface
- 1. Getting Started with JBoss
- 2. Web Applications
- 3. Building and Deploying an EAR
- 4. Databases and JBoss
-
5. Hibernate and JBoss
- 5.1. The Pros and Cons of ORMs
- 5.2. Hibernate Mapping Files
- 5.3. Hibernate MBean Service Descriptor
- 5.4. Creating a HAR
- 5.5. Adding the HAR to the EAR
- 5.6. Creating a JNDI Lookup
- 5.7. Hibernate Checklist
- 5.8. HibernateCarDAO
- 5.9. Adding a Car
- 5.10. Editing a Car
- 5.11. Deleting a Car
- 5.12. Looking Ahead...
-
6. Stateless Session Beans
- 6.1. Issues with EJBs
- 6.2. Should I Use EJB or Not?
- 6.3. Business Tier
- 6.4. Enterprise JavaBeans
- 6.5. Our Example
- 6.6. Iteration 1—Introduce a Session Bean
- 6.7. Calling the Session Bean from the Controller Servlet
- 6.8. EJB-Based JNDI References in Web-Based Deployment Descriptors
- 6.9. Session Bean Types
- 6.10. Session Beans
- 6.11. Remote Versus Local EJB Calls
- 6.12. Local and Remote Interfaces
-
6.13. Home Interfaces
- 6.13.1. Local Home Interface
- 6.13.2. Remote Home Interface
- 6.13.3. The Bean Class
- 6.13.4. EJB Deployment Descriptors
- 6.13.5. EJB Transaction Settings
- 6.13.6. Difficulties Using EJB
- 6.13.7. Automating Stateless Session Bean Deployment Using XDoclet Tags
- 6.13.8. Ant Build Script Using XDoclet
- 6.13.9. EJB JAR File
- 6.13.10. Ant Task for Creating EJB JAR
- 6.13.11. Adding an EJB JAR to the EAR
- 6.14. Reviewing Iteration 1
- 6.15. Testing Iteration 1
- 6.16. Iteration 2—Move Business Logic Out of the Controller
- 6.17. Reviewing Iteration 2
- 6.18. Testing Iteration 2
- 6.19. Iteration 3—Buy a Car
- 6.20. The AccountingDTO
- 6.21. Developing the HibernateAccountingDAO
- 6.22. Adding buyCar() to the InventoryFacadeBean
- 6.23. Reviewing Iteration 3
- 6.24. Testing Iteration 3
- 6.25. Final Thoughts on Session Beans
- 6.26. Looking Ahead ...
-
7. Java Message Service (JMS) and Message-Driven Beans
- 7.1. Sending Messages with JMS
- 7.2. Upgrade the Site: Running a Credit Check
- 7.3. JMS Architecture Overview
- 7.4. JMS Messaging Models
- 7.5. Creating a Message
- 7.6. Sending the Message
- 7.7. Core JMS API
- 7.8. Sending a JMS Message
- 7.9. JMS-Based JNDI References in Web-Based Deployment Descriptors
- 7.10. Deploying JMS Destinations on JBoss
- 7.11. JMS Checklist
- 7.12. Message-Driven Beans (MDBs)
- 7.13. MDB Checklist
- 7.14. Testing the Credit Check
- 7.15. Looking Ahead ...
-
8. JavaMail
- 8.1. Running a Credit Check
- 8.2. Sending Email Messages with JavaMail
- 8.3. Upgrading the MDB to Send an Email Message
- 8.4. Sending an Email Message
- 8.5. JavaMail-Based JNDI References in EJB Deployment Descriptors
- 8.6. Automating JavaMail-Based JNDI References with XDoclet
- 8.7. Deploying JavaMail on JBoss
- 8.8. JavaMail Checklist
- 8.9. Testing the Credit Check Notification Email
- 8.10. Looking Ahead ...
-
9. Security
- 9.1. J2EE Security
- 9.2. Web-Based Security
- 9.3. Restricting Access with web.xml
- 9.4. JAAS
- 9.5. Deploying a JAAS-Based Security Realm on JBoss
- 9.6. Testing Secure JSPs
- 9.7. Protecting the Administrative Actions
- 9.8. Web Security Checklist
- 9.9. Integrating Web Tier and EJB Tier Security
- 9.10. EJB Security
- 9.11. EJB Security Checklist
- 9.12. Looking Ahead ...
-
10. Web Services
- 10.1. Web Services Architecture
- 10.2. JBoss 4.x and Web Services
- 10.3. J2EE 1.4 and Web Services
- 10.4. Implementing J2EE 1.4 Web Services
- 10.5. Service Endpoint Interface (SEI)
- 10.6. Modifying ejb-jar.xml
- 10.7. webservices.xml
- 10.8. JAX-RPC Mapping File
- 10.9. WSDL File
- 10.10. Set the Web Service URL
- 10.11. Modifying the InventoryFacadeBean EJB
- 10.12. Web Services Deployment
- 10.13. Automating Web Services Deployment
- 10.14. J2EE Web Services Checklist
- 10.15. Testing Web Services Deployment
- 10.16. Web Services Client
- 10.17. Implementing a Web Service Client
- 10.18. Web Service Client Checklist
- 10.19. Testing the Web Service Client
- 10.20. Final Thoughts on J2EE 1.4 Web Services
- 10.21. Conclusion
- 10.22. Congratulations!
- A. ClassLoaders and JBoss
- B. Logging and JBoss
- C. JAAS Tutorial
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: JBoss at Work: A Practical Guide
- Author(s):
- Release date: October 2005
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596007348
You might also like
book
JBoss in Action
JBoss in Action teaches readers how to use the JBoss application server, digging into the things …
book
JBoss: Developer's Guide
Build your own enterprise applications and integration flows with JBoss and its products About This Book …
book
WildFly Cookbook
Over 90 hands-on recipes to configure, deploy, and manage Java-based applications using WildFly In Detail With …
book
Mastering JBoss Enterprise Application Platform 7
Create modular scalable enterprise-grade applications with JBoss Enterprise Application Platform 7 About This Book Leverage the …