JBoss at work a practical guide
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 i...
Autor principal: | |
---|---|
Otros Autores: | |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol, California :
O'Reilly Media
2006.
|
Edición: | First edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009626947606719 |
Tabla de Contenidos:
- 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
- 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...
- 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
- 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
- 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
- Creating the ACCOUNTING Table