O'Reilly logo

Enterprise JavaBeans, Third Edition by Richard Monson-Haefel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A.  The Enterprise JavaBeans API

This appendix is a quick reference guide to the Enterprise JavaBeans API. Within each package, the classes are organized alphabetically.

Package: javax.ejb

This package contains the heart of the EJB API. It consists mostly of interfaces, many of which are implemented by your EJB vendor. These interfaces essentially define the services provided by the bean’s container, the services that must be implemented by the bean itself, and the client interface to an enterprise bean. The javax.ejb package also contains a number of exceptions that are thrown by enterprise beans.

EJB 2.0: AccessLocalException

This standard system exception is thrown by local component interfaces to indicate that the caller (enterprise bean) does not have permission to access the method.

public class AccessLocalException extends EJBException 
{
   public AccessLocalException();
   public AccessLocalException(String message);
   public AccessLocalException(String message, Exception ex);
}

CreateException

This standard application exception must be thrown by all create methods that are defined in the home interface; it indicates that the bean could not be created.

public class javax.ejb.CreateException extends java.lang.Exception 
{
    public CreateException();
    public CreateException(String message);
}

DuplicateKeyException

This standard application exception is thrown by the create methods of the home interface of entity beans; it indicates that a bean with the same primary key already exists. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required