Java EE 5 Development using GlassFish Application Server:
The complete guide to installing and configuring the GlassFish Application Server and developing Java EE 5 applications to be deployed to this server
www.PACKTPUB.com  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
Book Contents Index > Chapter 9
Introduction
1: Getting Started with GlassFish
2: Servlet Development and Deployment
3: JavaServer Pages
4: Database Connectivity
5: JSP Standard Tag Library
6: JavaServer Faces
7: Java Messaging Service
8: Security
9: Enterprise JavaBeans

10: Web Services
11: Beyond Java EE

Appendix A: Sending Email from Java EE Applications

Appendix B: IDE Integration

Index

Latest Updates

Free Chapter:

Chapter 6: JavaServer Faces [ 892 kB PDF]

Code Download

Contact us

 

Chapter 9: Enterprise JavaBeans

Enterprise JavaBeans are server-side components that encapsulate application business logic. Enterprise JavaBeans simplify application development by automatically taking care of transaction management and security. There are two types of Enterprise JavaBeans: Session Beans, which perform business logic; and Message-Driven Beans, which act as a message listener.

Readers familiar with previous versions of J2EE will notice that Entity Beans were not mentioned in the above paragraph. In Java EE 5, Entity Beans have been deprecated in favor of the Java Persistence API (JPA). Entity Beans are still supported for backwards compatibility; however, the preferred way of doing Object Relational Mapping with Java EE 5 is through JPA. Refer to Chapter 4 for a detailed discussion on JPA.

The following topics will be covered in this chapter:

  • Session Beans
    • A simple session bean
    • A more realistic example
    • Using a session bean to implement the DAO design pattern
  • Message-driven beans
  • Transactions in Enterprise Java beans
    • Container-managed transactions
    • Bean-managed transactions
  • Enterprise JavaBeans life cycles Stateful session bean life cycle
    • Stateless session bean life cycle
    • Message-driven bean life cycle
  • EJB timer service
  • EJB security

Chapter 9: Enterprise JavaBeans

  • Session Beans
    • Simple Session Bean
    • A More Realistic Example
    • Invoking Session Beans from Web Applications
  • Message-Driven Beans
  • Transactions in Enterprise Java Beans
    • Container-Managed Transactions
    • Bean-Managed Transactions
  • Enterprise JavaBean Life Cycles
    • Stateful Session Bean Life Cycle
    • Stateless Session Bean Life Cycle
    • Message-Driven Bean Life Cycle
  • EJB Timer Service
  • EJB Security
    • Client Authentication
  • Summary
   

 

Paperback 400 pages
Released: October 2007
ISBN: 1847192602
ISBN 13: 978-1-847192-60-8

     

 




View the book details
on PacktPub.com

 


 
  This website is owned and maintained by Packt Publishing Ltd, 200pan lang="en-us">7. All rights reserved. Terms and Conditions/a>