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. ...
Get Enterprise JavaBeans, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.