JBoss at Work


Tom. Marrs
Bok Engelsk 2005 · Electronic books.
Utgitt
Sebastopol : : O'Reilly Media, , 2005.
Omfang
1 online resource (308 p.)
Opplysninger
Description based upon print version of record.. - Table of Contents; Preface; Audience; About This Book; Assumptions This Book Makes; Conventions Used in This Book; Using Code Examples; Safari Enabled; Comments and Questions; Acknowledgments; Tom's Acknowledgments; Scott's Acknowledgments; Getting Started with JBoss; Why "JBoss at Work"?; Why JBoss?; The Example: JAW Motors; The Tools; Installing Java; Installing Ant; Installing XDoclet; Installing JBoss; Touring the JBoss Directory Structure; Server Configurations; Touring the Server Configuration Directory Structure; Deploying Applications to JBoss; Looking Ahead...; Web Applications. - Creating the ACCOUNTING Table. - Databases and JBossPersistence 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...; 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...; Stateless Session Beans; Issues with EJBs; Should I Use EJB or Not?; Business Tier; Enterprise JavaBeans. - Local Home InterfaceRemote Home Interface; The Bean Class; EJB Deployment Descriptors; EJB Transaction Settings; Difficulties Using EJB; Automating Stateless Session Bean Deployment UsingXDocletTags; Ant Build Script Using XDoclet; EJB JAR File; Ant Task for Creating EJB JAR; Adding an EJB JAR to the EAR; Reviewing Iteration 1; Testing Iteration 1; Iteration 2-Move Business Logic Out of the Controller; Refactoring the Business Logic; Hibernate 3 and CMT; Reviewing Iteration 2; Testing Iteration 2; Iteration 3-Buy a Car; Upgrade the Web Site: Adding a "Buy Car" Link. - Our ExampleIteration 1-Introduce a Session Bean; Modifying the CAR Table; Upgrading the CarDTO with a Status Field; Adding filterByStatus to the HibernateDAO; Calling the Session Bean from the Controller Servlet; Factoring Out the JNDI Calls; EJB-Based JNDI References in Web-Based Deployment Descriptors; Automating EJB-Related JNDI Settings in Web-Based Deployment Descriptors; Session Bean Types; Session Beans; Remote Versus Local EJB Calls; Exploring the New Directory Structure; The ejb sub-project; Local and Remote Interfaces; Local Interface; Remote Interface; Home Interfaces. - The Servlet ContainerThree-Tier Applications; Exploring the Presentation Tier; Building the View Cars Page; Iteration 1: HTML; Iteration 2: JSP and JSTL; Iteration 3: CSS; Deploying the Application as a WAR File; A Deeper Examination of the WAR; Ant; Adding a Model and Controller; The Model; The Controller; Looking Ahead...; Building and Deploying an EAR; WARs Versus EARs; Application.xml; Common JAR; Exploring the New Directory Structure; The common sub-project; The webapp sub-project; The master build; Ant EAR task; Deploying the EAR; Adding a DAO; Using XDoclet; Looking Ahead.... - 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, t
Emner
Sjanger
Dewey
ISBN
0596007345

Bibliotek som har denne