Uses of Class
jakarta.ejb.EJBException
Packages that use EJBException
Package
Description
Contains the Enterprise Bean classes
and interfaces that define the contracts between the enterprise bean
and its clients and between the enterprise bean and the enterprise bean container.
Defines interfaces that are implemented by
the enterprise bean container.
-
Uses of EJBException in jakarta.ejb
Subclasses of EJBException in jakarta.ejbModifier and TypeClassDescriptionclassAn AccessLocalException is thrown to indicate that the caller does not have permission to call the method.classA ConcurrentAccessException indicates that the client has attempted an invocation on a stateful session bean or singleton bean while another invocation is in progress and such concurrent access is not allowed.classThis exception indicates that an attempt to concurrently access a stateful session or singleton bean method resulted in a timeout.classThis exception indicates that client access to a business method was denied.classThis exception indicates that a request carried a null transaction context, but the target object requires an active transaction.classThis exception is thrown to a caller of bean business method to indicate that the transaction associated with processing of the request has been rolled back, or marked to roll back.classThis exception indicates that an attempt was made to perform an illegal loopback invocation.classThis exception indicates that a calendar-based timer will not result in any more timeouts.classA NoSuchEJBException is thrown if an attempt is made to invoke a business method on a stateful session or singleton object that no longer exists.classThe 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.classA NoSuchObjectLocalException is thrown if an attempt is made to invoke a method on a local object (local enterprise bean object or timer) that no longer exists.classThis exception is thrown to a local client to indicate that a request carried a null transaction context, but the target object requires an active transaction.classThis exception is thrown to a local client to indicate that the transaction associated with processing of the request has been rolled back, or marked to roll back.Methods in jakarta.ejb that throw EJBExceptionModifier and TypeMethodDescriptionvoidSessionSynchronization.afterBegin()TheafterBeginmethod notifies a stateful session bean instance that a new transaction has started, and that the subsequent business methods on the instance will be invoked in the context of the transaction.voidSessionSynchronization.afterCompletion(boolean committed) TheafterCompletionmethod notifies a stateful session bean instance that a transaction commit protocol has completed, and tells the instance whether the transaction has been committed or rolled back.voidSessionSynchronization.beforeCompletion()ThebeforeCompletionmethod notifies a stateful session bean instance that a transaction is about to be committed.voidTimer.cancel()Cause the timer and all its associated expiration notifications to be cancelled.TimerService.createCalendarTimer(ScheduleExpression schedule) Create a calendar-based timer based on the input schedule expression.TimerService.createCalendarTimer(ScheduleExpression schedule, TimerConfig timerConfig) Create a calendar-based timer based on the input schedule expression.TimerService.createIntervalTimer(long initialDuration, long intervalDuration, TimerConfig timerConfig) Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval.TimerService.createIntervalTimer(Date initialExpiration, long intervalDuration, TimerConfig timerConfig) Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval.TimerService.createSingleActionTimer(long duration, TimerConfig timerConfig) Create a single-action timer that expires after a specified duration.TimerService.createSingleActionTimer(Date expiration, TimerConfig timerConfig) Create a single-action timer that expires at a given point in time.TimerService.createTimer(long initialDuration, long intervalDuration, Serializable info) Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval.TimerService.createTimer(long duration, Serializable info) Create a single-action timer that expires after a specified duration.TimerService.createTimer(Date initialExpiration, long intervalDuration, Serializable info) Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval.TimerService.createTimer(Date expiration, Serializable info) Create a single-action timer that expires at a given point in time.voidEntityBean.ejbActivate()A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific enterprise bean object.voidSessionBean.ejbActivate()The activate method is called when a stateful session bean instance is activated from its "passive" state.voidEntityBean.ejbLoad()A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.voidEntityBean.ejbPassivate()A container invokes this method on an instance before the instance becomes disassociated with a specific enterprise bean object.voidSessionBean.ejbPassivate()The passivate method is called before a stateful session bean instance enters the "passive" state.voidEntityBean.ejbRemove()A container invokes this method before it removes the enterprise bean object that is currently associated with the instance.voidMessageDrivenBean.ejbRemove()A container invokes this method before it ends the life of the message-driven object.voidSessionBean.ejbRemove()A container invokes this method before it ends the life of the session object.voidEntityBean.ejbStore()A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.TimerService.getAllTimers()Returns all active timers associated with the beans in the same module in which the caller bean is packaged.EJBLocalObject.getEJBLocalHome()Obtain the enterprise bean's local home interface.Timer.getHandle()Get a serializable handle to the timer.Timer.getInfo()Get the information associated with the timer at the time of creation.Timer.getNextTimeout()Get the point in time at which the next timer expiration is scheduled to occur.EJBLocalObject.getPrimaryKey()Obtain the primary key of the enterprise bean local object.Timer.getSchedule()Get the schedule expression corresponding to this timer.TimerHandle.getTimer()Obtain a reference to the timer represented by this handle.longTimer.getTimeRemaining()Get the number of milliseconds that will elapse before the next scheduled timer expiration.TimerService.getTimers()Returns all active timers associated with this bean.booleanTimer.isCalendarTimer()Return whether this timer is a calendar-based timer.booleanEJBLocalObject.isIdentical(EJBLocalObject obj) Test if a given enterprise bean local object is identical to the invoked enterprise bean local object.booleanTimer.isPersistent()Return whether this timer has persistent semantics.voidRemove an enterprise bean object identified by its primary key.voidEJBLocalObject.remove()Remove the enterprise bean local object.voidEntityBean.setEntityContext(EntityContext ctx) Set the associated entity context.voidMessageDrivenBean.setMessageDrivenContext(MessageDrivenContext ctx) Set the associated message-driven context.voidSessionBean.setSessionContext(SessionContext ctx) Set the associated session context.voidEntityBean.unsetEntityContext()Unset the associated entity context. -
Uses of EJBException in jakarta.ejb.spi
Methods in jakarta.ejb.spi that throw EJBExceptionModifier and TypeMethodDescriptionEJBContainerProvider.createEJBContainer(Map<?, ?> properties) Called by the embeddable container bootstrap process to find a suitable embeddable container implementation.