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
video
Core Java 11 Fundamentals, Second Edition
10 Hours of Video Instruction Overview Core Java® has long been recognized as the leading, no-nonsense …
video
Advanced Java Development
You’re a junior developer with a couple of years of Java under your belt and you’ve …
book
Java Coding Problems
Develop your coding skills by exploring Java concepts and techniques such as Strings, Objects and Types, …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …