Package javax.ejb

API used by EJB 3.0 container

See:
          Description

Interface Summary
EJBContext Allows to gets some info on the bean.
EJBHome Used by EJB 2.1 for their business remote home interface.
EJBLocalHome Used by EJB 2.1 for their business local home interface.
EJBLocalObject Used by EJB 2.1 for their business local interface.
EJBMetaData Metadata of EJB provided to the client.
EJBObject Used by EJB 2.1 for their business remote interface.
EnterpriseBean Each EJB 2.1 bean needs to implement this interface.
EntityBean Each EJB 2.1 Entity bean needs to implement this interface.
EntityContext The EntityContext interface provides an instance with access to the container-provided runtime context of an entity enterprise Bean instance.
Handle The Handle interface is implemented by all EJB object handles.
HomeHandle The HomeHandle interface is implemented by all home object handles.
MessageDrivenBean The MessageDrivenBean interface is implemented by every message-driven enterprise Bean class.
MessageDrivenContext The MessageDrivenContext interface provides access to the runtime message-driven context that the container provides for a message-driven enterprise Bean instance.
SessionBean The SessionBean interface is implemented by every session enterprise Bean class.
SessionContext Context provided by Session Bean.
SessionSynchronization The SessionSynchronization interface allows a session Bean instance to be notified by its container of transaction boundaries.
TimedObject The TimedObject interface contains the callback method that is used to deliver timer expiration notifications.
Timer The Timer interface contains information about a timer that was created through the EJB Timer Service.
TimerHandle The TimerHandle interface is implemented by all EJB timer handles.
TimerService The TimerService interface provides enterprise bean components with access to the container-provided Timer Service.
 

Enum Summary
TransactionAttributeType Available types of transactions.
TransactionManagementType Types of transaction management.
 

Exception Summary
AccessLocalException An AccessLocalException is thrown to indicate that the caller does not have permission to call the method.
ConcurrentAccessException A ConcurrentAccessException indicates that the client has attempted an invocation on a stateful session bean while another invocation is in progress.
CreateException The CreateException exception must be included in the throws clauses of all create methods defined in an enterprise Bean's home interface.
This exception is used as a standard application-level exception to report a failure to create an EJB object.
DuplicateKeyException The DuplicateKeyException exception is thrown if an entity EJB object cannot be created because an object with the same key already exists.
EJBAccessException Access to a method was denied.
EJBException Thrown for unexpected exception.
EJBTransactionRequiredException A transaction is required but there was no transaction.
EJBTransactionRolledbackException Current transaction has been rollbacked.
FinderException The FinderException exception must be included in the throws clause of every findMETHOD(...) method of an entity Bean's home interface.
The exception is used as a standard application-level exception to report a failure to find the requested EJB object(s).
NoSuchEJBException The EJB on which we call methods has been removed.
NoSuchEntityException The NoSuchEntityException exception is thrown by an Entity Bean instance to its container to report that the invoked business method or callback method could not be completed because of the underlying entity was removed from the database.
This exception may be thrown by the bean class methods that implement the business methods defined in the bean's component interface; and by the ejbLoad and ejbStore methods.
NoSuchObjectLocalException The EJB on which we call methods has been removed.
ObjectNotFoundException The ObjectNotFoundException exception is thrown by a finder method to indicate that the specified EJB object does not exist.
Only the finder methods that are declared to return a single EJB object use this exception.
RemoveException The RemoveException exception is thrown at an attempt to remove an EJB object when the enterprise Bean or the container does not allow the EJB object to be removed.
TransactionRequiredLocalException This exception indicates that a request carried a null transaction context, but the target object requires an active transaction.
TransactionRolledbackLocalException This exception indicates that the transaction associated with processing of the request has been rolled back, or marked to roll back.
 

Annotation Types Summary
ActivationConfigProperty Properties used by a Message Driven Bean to set properties.
ApplicationException An exception annotated with this annotation will be an application exception and then thrown to the user.
And by default, no rollback is done before throwing the exception.
EJB Allows to inject a reference to an EJB.
EJBs List of EJBs.
Init A method of a session bean with this annotation will be used as a create method (for adapter EJB 2.1 view).
Local Used on a bean/interface to mark it as a local interface.
LocalHome Adapted view for a local home (EJB 2.1).
MessageDriven Defines a Message Driven Bean when applied on a bean's class.
PostActivate Called on a stateful bean's method when activation has been done.
PrePassivate Called on a stateful bean's method before passivation.
Remote Used on a bean/interface to mark it as a remote interface.
RemoteHome Adapted view for a remote home (EJB 2.1).
Remove Call on this annotated method will do a remove of the stateful bean except if retainIfException is set to true.
Stateful Defined the class annotated by Stateful annotation as a stateful bean.
Stateless Defined the class annotated by Stateless annotation as a stateless bean.
Timeout Defines a method that will receive timers.
TransactionAttribute Defines the transaction attribute used for all methods on a given class or for a given method.
TransactionManagement Type of management (container or bean managed transaction).
 

Package javax.ejb Description

API used by EJB 3.0 container



Copyright © 2008. All Rights Reserved.