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 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, following chapters describe Enterprise JavaBeans (EJB), JavaServer Pages (JSP), servlets, and more, giving readers a full understanding of J2EE development.
Further chapters cover the role of XML, custom JSP tags, and how Java Connectors allow J2EE applications to interact with legacy and non-Java systems. The book finishes with sample applications that 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 EJBs
- The Challenge of N-Tier Development
- The J2EE Platform and Roles
-
Naming and Directory Services
- Naming and Directory Services
- Why Use a Naming Service?
- What is JNDI?
- Common Naming Services
- Naming Conventions
- Using JNDI
- Obtaining an Initial Context
- Initial Context Naming Exceptions
- Binding JNDI Objects
- JNDI Name Lookup
- Contexts
- More on JNDI Names
- Attributes
- More on Objects
- What Else Can JNDI Do?
- Summary
- Q&A
- Exercise
- Introduction to EJBs
-
Session EJBs
- Overview
- The javax.ejb Package for Session Beans
- Stateless Session Bean Lifecycle
- Specifying a Stateless Session Bean
- Implementing a Stateless Session Bean
- Configuring and Deploying a Stateless Session Bean
- Stateful Session Bean Lifecycle
- Specifying a Stateful Session Bean
- Implementing a Stateful Session Bean
- Configuring and Deploying a Stateful Session Bean
- Client's View
- Patterns and Idioms
- Gotchas
- Summary
- Q&A
- Exercises
-
Entity EJBs
- Overview
- The javax.ejb Package for Entity Beans
- Entity Bean Types
- Remote Versus Local Interfaces
- BMP Entity Bean Lifecycle
- Specifying a BMP Entity Bean
- Implementing a BMP Entity Bean
- Configuring and Deploying a BMP Entity Bean
- Client's View
- Session Beans Revisited
- Patterns and Idioms
- Gotchas
- Summary
- Q&A
- Exercises
- CMP and EJB QL
-
Developing J2EE Applications
- Transactions and Persistence
-
Java Message Service
- Messaging
- Java Message Service API
- JMS API Architecture
- Developing JMS Applications Using JBoss1
- Programming a JMS Application Using J2EE RI
- Point-to-Point Messaging Example
- Simple Synchronous Receiver Example
- The Publish/Subscribe Message Domain
- Publish/Subscribe Messaging Example
- Introduction to XML
- Summary
- Q&A
- Exercise
- 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
- The Drive to Platform-Independent Data Exchange
- Origins of XML
- Structure and Syntax of XML
- Creating Valid XML
- Parsing XML
- The JAXP Packages
- Parsing XML using SAX
- Document Object Model (DOM) Parser
- Modifying a DOM Tree
- Java Architecture for XML Binding
- Extending the Agency Case Study
- Summary
- Q&A
- Exercises
- Transforming XML Documents
- Patterns
- Integrating with External Resources
- Using RPC-Style Web Services with J2EE
- Web Service Registries and Message-Style Web Services
- An Introduction to UML
- SQL Reference
- An Overview of XML
- The Java Community Process
- Glossary
- Index
Product information
- Title: Sams Teach Yourself J2EE™ in 21 Days
- Author(s):
- Release date: April 2002
- Publisher(s): Sams
- ISBN: 9780672323843
You might also like
book
Web Security for Developers
The world has changed. Today, every time you make a site live, you’re opening it up …
book
Introduction to JavaScript Object Notation
What is JavaScript Object Notation (JSON) and how can you put it to work? This concise …
book
Distributed Systems, 2nd Edition
Distributed Systems: An Algorithmic Approach, Second Edition provides a balanced and straightforward treatment of the underlying …
book
A Guide to the Project Management Body of Knowledge (PMBOK® Guide) – Seventh Edition and The Standard for Project Management (ENGLISH)
PMBOK® Guide is the go-to resource for project management practitioners. The project management profession has significantly …