-
Chapter 1 Getting Started with JBoss
-
Why "JBoss at Work"?
-
Why JBoss?
-
The Example: JAW Motors
-
The Tools
-
Installing JBoss
-
Deploying Applications to JBoss
-
Looking Ahead...
-
-
Chapter 2 Web Applications
-
The Servlet Container
-
Three-Tier Applications
-
Exploring the Presentation Tier
-
Building the View Cars Page
-
Adding a Model and Controller
-
Looking Ahead...
-
-
Chapter 3 Building and Deploying an EAR
-
WARs Versus EARs
-
Application.xml
-
Common JAR
-
Deploying the EAR
-
Adding a DAO
-
Using XDoclet
-
Looking Ahead...
-
-
Chapter 4 Databases and JBoss
-
Persistence Options
-
JDBC
-
JNDI
-
JNDI References in web.xml
-
JBoss DataSource Descriptors
-
JDBC Driver JARs
-
Database Checklist
-
Accessing the Database Using Ant
-
Creating JDBCCarDAO
-
Looking Ahead...
-
-
Chapter 5 Hibernate and JBoss
-
The Pros and Cons of ORMs
-
Hibernate Mapping Files
-
Hibernate MBean Service Descriptor
-
Creating a HAR
-
Adding the HAR to the EAR
-
Creating a JNDI Lookup
-
Hibernate Checklist
-
HibernateCarDAO
-
Adding a Car
-
Editing a Car
-
Deleting a Car
-
Looking Ahead...
-
-
Chapter 6 Stateless Session Beans
-
Issues with EJBs
-
Should I Use EJB or Not?
-
Business Tier
-
Enterprise JavaBeans
-
Our Example
-
Iteration 1—Introduce a Session Bean
-
Calling the Session Bean from the Controller Servlet
-
EJB-Based JNDI References in Web-Based Deployment Descriptors
-
Session Bean Types
-
Session Beans
-
Remote Versus Local EJB Calls
-
Local and Remote Interfaces
-
Home Interfaces
-
Reviewing Iteration 1
-
Testing Iteration 1
-
Iteration 2—Move Business Logic Out of the Controller
-
Reviewing Iteration 2
-
Testing Iteration 2
-
Iteration 3—Buy a Car
-
The AccountingDTO
-
Developing the HibernateAccountingDAO
-
Adding buyCar() to the InventoryFacadeBean
-
Reviewing Iteration 3
-
Testing Iteration 3
-
Final Thoughts on Session Beans
-
Looking Ahead ...
-
-
Chapter 7 Java Message Service (JMS) and Message-Driven Beans
-
Sending Messages with JMS
-
Upgrade the Site: Running a Credit Check
-
JMS Architecture Overview
-
JMS Messaging Models
-
Creating a Message
-
Sending the Message
-
Core JMS API
-
Sending a JMS Message
-
JMS-Based JNDI References in Web-Based Deployment Descriptors
-
Deploying JMS Destinations on JBoss
-
JMS Checklist
-
Message-Driven Beans (MDBs)
-
MDB Checklist
-
Testing the Credit Check
-
Looking Ahead ...
-
-
Chapter 8 JavaMail
-
Running a Credit Check
-
Sending Email Messages with JavaMail
-
Upgrading the MDB to Send an Email Message
-
Sending an Email Message
-
JavaMail-Based JNDI References in EJB Deployment Descriptors
-
Automating JavaMail-Based JNDI References with XDoclet
-
Deploying JavaMail on JBoss
-
JavaMail Checklist
-
Testing the Credit Check Notification Email
-
Looking Ahead ...
-
-
Chapter 9 Security
-
J2EE Security
-
Web-Based Security
-
Restricting Access with web.xml
-
JAAS
-
Deploying a JAAS-Based Security Realm on JBoss
-
Testing Secure JSPs
-
Protecting the Administrative Actions
-
Web Security Checklist
-
Integrating Web Tier and EJB Tier Security
-
EJB Security
-
EJB Security Checklist
-
Looking Ahead ...
-
-
Chapter 10 Web Services
-
Web Services Architecture
-
JBoss 4.x and Web Services
-
J2EE 1.4 and Web Services
-
Implementing J2EE 1.4 Web Services
-
Service Endpoint Interface (SEI)
-
Modifying ejb-jar.xml
-
webservices.xml
-
JAX-RPC Mapping File
-
WSDL File
-
Set the Web Service URL
-
Modifying the InventoryFacadeBean EJB
-
Web Services Deployment
-
Automating Web Services Deployment
-
J2EE Web Services Checklist
-
Testing Web Services Deployment
-
Web Services Client
-
Implementing a Web Service Client
-
Web Service Client Checklist
-
Testing the Web Service Client
-
Final Thoughts on J2EE 1.4 Web Services
-
Conclusion
-
Congratulations!
-
-
Appendix A ClassLoaders and JBoss
-
Namespaces
-
Class Loading in the J2EE
-
Class Loading with JBoss
-
Common ClassLoader Issues
-
ClassLoader Options
-
Solving ClassLoader Issues
-
Conclusion
-
-
Appendix B Logging and JBoss
-
Jakarta Commons Logging (JCL) API
-
Apache Log4J
-
Adding Application-Specific Properties to System Properties
-
Configuring Log4J with a Configuration File
-
Loading Resources from the CLASSPATH
-
Logging Deployment
-
Logging Checklist
-
Testing Logging
-
Conclusion
-
-
Appendix C JAAS Tutorial
-
JAAS
-
Client-Side JAAS
-
Conclusion
-
-
Colophon
- Title:
- JBoss at Work: A Practical Guide
- By:
- Tom Marrs, Scott Davis
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- October 2005
- Ebook Release:
- February 2009
- Pages:
- 312
- Print ISBN:
- 978-0-596-00734-8
- | ISBN 10:
- 0-596-00734-5
- Ebook ISBN:
- 978-0-596-10496-2
- | ISBN 10:
- 0-596-10496-0
About the Authors
Tom Marrs, a 20-year veteran in the software industry, is the Principal and Senior Software Architect at Vertical Slice, a consulting firm that designs and implements mission-critical business applications using the latest J2EE and open source technologies, along with providing architecture evaluation and developer training and mentoring services. Tom teaches Java/J2EE/JBoss training classes, speaks regularly at software conferences such as No Fluff Just Stuff (http://www.nofluffjuststuff.com), and is a blogger on java.net and ONJava. An active participant in the local technical community, Tom is the President of the Denver JBoss User Group and has served as President of the Denver Java Users Group (http://www.denverjug.org).
Scott Davis is a senior software engineer in the Colorado front range. He is passionate about open source solutions and agile development. He has worked on a variety of Java platforms, from J2EE to J2SE to J2ME (sometimes all on the same project).
Scott is a frequent presenter at national conferences and local user groups. He was the president of the Denver Java Users Group in 2003 when it was voted one of the Top 10 JUGs in North America. After a quick move north, he is currently active in the leadership of the Boulder Java Users Group. Keep up with him at http://www.davisworld.org.
Colophon
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects.
The animal on the cover of JBoss at Work: A Practical Guide is a golden eagle (Aquila chrysaetos), named for the golden feathers on the back of its neck. This large bird of prey is one of the two eagle breeds found in the United States, inhabiting parts of the West as well as Canada, Alaska, Eurasia, and northern Africa. The golden eagle makes its home in desert grasslands and above the timberline. There it can stretch its wings (7 feet across) and go for a nice swoop at 200 mph, or catch a rising mass of warm air called a thermal and spiral upward into the sky. Golden eagles build large stick nests in trees or cliff walls. They may build multiple nests within a nesting range and alternate among them, depending on the year. Since golden eagles continually elaborate on their nests, the nests can grow quite large, reaching 8 to 10 feet across and 3 to 4 feet in depth. Both the male and female participate in the rearing of the eaglets, with the male doing most of the hunting and the female doing most of the incubating. If food is scarce, the larger of the eaglets may commit siblicide.
The young fledge when 72 to 84 days old and depend upon their parents for another 3 months. After this period they either migrate or move out of their parents' territory, but they generally winter in their natal area. At four years of age, golden eagles mate. They often stay paired with the same mate for life-about 30 years. Golden eagles are excellent hunters and for this reason are rarely forced to migrate far from their nesting territory. They feast on over 50 species of mammals, 48 birds, 5 reptiles, and 2 fish. Among these are included prairie dogs, rabbits, ground squirrels, grouse, ducks, chukars, marmots, foxes, skunks, cats, meadowlarks, and snakes. Golden eagles are protected in the U.S. through the U.S. Fish and Wildlife Service. Possessing a feather or any other body part belonging to this bird will incur a $10,000 fine or a jail term of up to 10 years. (There are some exceptions for Native American traditions.)
Colleen Gorman was the production editor and proofreader, and Ann Schirmer was the copyeditor for JBoss at Work: A Practical Guide. Jamie Peppard and Genevieve d'Entremont provided quality control. Loranah Dimant provided production assistance. Johnna VanHoose Dinse wrote the index.
Karen Montgomery designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from Johnson's Natural History. Karen Montgomery produced the cover layout with Adobe InDesign CS using Adobe's ITC Garamond font.
David Futato designed the interior layout. This book was converted by Joe Wizda to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano, Jessamyn Read, and Lesley Borash using Macromedia FreeHand MX and Adobe Photoshop CS. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Lydia Onofrei.
