Book description
J2EE has become required knowledge for any serious Java developer, but learning this large and complex specification requires a substantial investment of time and energy. Sams Teach Yourself J2EE in 21 Days, 2/E presents the enterprise Java architecture in accessible, easy-to-comprehend lessons, describing how each J2EE tool solves the challenges of n-Tier development. Using the architecture as a roadmap, chapters describe Enterprise JavaBeans (EJB), JavaServer Pages (JSP), Java Servlets, and more, giving readers a full understanding of J2EE development.
Further chapters cover the role of XML, custom JSP tags, creating J2EE Web Services, and how Java Connectors allow J2EE applications to interact with legacy and non-Java systems. The book finishes with sample applications which put all the pieces together, including an example using J2EE to create Web Services. Along the way, every concept is illustrated with practical, real-world examples to ensure understanding by Java students as well as experts.
Table of contents
- Copyright
- About the Authors
- Acknowledgments
- Tell Us What You Think!
- Introduction
-
Introducing J2EE and Enterprise JavaBeans
- The Challenge of N-tier Development
- The J2EE Platform and Roles
- Naming and Directory Services
- Introduction to Enterprise JavaBeans
-
Session EJBs
- Overview
- The javax.ejb Package for Session beans
- Specifying a Stateless Session bean
- Implementing a Stateless Session Bean
- Configuring a Stateless Session bean
- Configuring a Session Bean Using J2EE RI deploytool
- Client Applications
- Configuring J2EE RI Client Applications with deploytool
- Running the Agency Case Study Example
- Stateful Session Beans
- Timer Service
- Gotchas
- Summary
- Q&A
- Exercises
- Entity EJBs
- Container-Managed Persistence and EJB Query Language
-
Developing J2EE Applications
- Transactions and Persistence
- Java Message Service
- Message-Driven Beans
- JavaMail
-
Servlets
- The Purpose and Use of Servlets
- Introduction to HTTP
- Introduction to HTML
- The Servlet Environment
- The Servlet Class Hierarchy
- Simple Servlet Example
- Passing Parameter Data to a Servlet
- Web Applications
- Handling Errors
- Retaining Client and State Information
- Servlet Filtering
- Event Listening
- Servlet Threads
- Security and the Servlet Sandbox
- Agency Case Study
- Summary
- Q&A
- Exercises
- JavaServer Pages
- JSP Tag Libraries
-
Integrating J2EE into the Enterprise
- Security
- Integrating XML with J2EE
- Transforming XML Documents
- Patterns
- Integrating with External Resources
-
Using RPC-Style Web Services with J2EE
- Web Service Overview
- Web Services for J2EE
- Creating a Web Service with JAX-RPC
- The JAX-RPC API
- Creating a Simple Service
- Packaging and Deploying the Simple Web Service Using J2EE RI deploytool
- Consuming the Simple Greeting Service
- Building More Robust Web Services
- Exposing EJBs Through Web Service Protocols
- Packaging and Deploying the Agency Web Service Using J2EE RI deploytool
- Consuming the Simple Greeting Service
- Other Considerations for Web Services
- Summary
- Q&A
- Exercises
-
Message-Style Web Services and Web Service Registries
- Message-based SOAP Services
- Implementing an SAAJ-based Web Service
- Packaging and Deploying the Simple Web Service Using J2EE RI deploytool
- Consuming the SAAJ Web Service
- More Complex Message Exchange
- Registries for Web Services
- Accessing Information in a UDDI Registry
- Using JAXR for Registry Access
- Contacting a Registry Using JAXR
- Storing Information in a Registry Using JAXR
- Retrieving Information from a Registry Using JAXR
- Summary
- Q&A
- Exercises
- Appendixes
- Index
Product information
- Title: Sams Teach Yourself J2EE™ in 21 Days, Second Edition
- Author(s):
- Release date: May 2004
- Publisher(s): Sams
- ISBN: 0672325586
You might also like
book
Sams Teach Yourself J2EE™ in 21 Days
J2EE has become required knowledge for any serious Java developer, but learning this large and complex …
book
Advanced JavaServer Pages™
Design and implement flexible, extensible, and maintainable applications with servlets and JSP technology Master powerful authentication …
book
Expert One-on-One™ J2EE™ Development without EJB™
What is this book about? Expert One-on-One J2EE Development without EJB shows Java developers and architects …
book
java.rmi: The Remote Method Invocation Guide
"This book collects an astonishing range of Java RMI material, suitable for any Java programmer regardless …