EJB.5.4 EJBObject


A client never directly accesses instances of the session bean's class. A client always uses the session bean's remote interface to access a session bean's instance. The class that implements the session bean's remote interface is provided by the container; its instances are called session EJBObject s.

A session EJBObject supports:

  • The business logic methods of the object. The session EJBObject delegates invocation of a business method to the session bean instance.

  • The methods of the javax.ejb.EJBObject interface. These methods allow the client to:

    - Get the session object's home interface.

    - Get the session object's handle.

    - Test if the session object is identical with another session object.

    - Remove the session object.

The implementation of the methods defined in the javax.ejb.EJBObject interface is provided by the container. They are not delegated to the instances of the session bean class.



Java 2 Platform, Enterprise Edition. Platform and Component Specifications
Java 2 Platform, Enterprise Edition: Platform and Component Specifications
ISBN: 0201704560
EAN: 2147483647
Year: 2000
Pages: 399

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net