Package | Description |
---|---|
javax.ejb | |
javax.ejb.embeddable | |
javax.ejb.spi | |
org.jboss.ejb._private |
Modifier and Type | Class and Description |
---|---|
class |
AccessLocalException
An AccessLocalException is thrown to indicate that the caller does not
have permission to call the method.
|
class |
ConcurrentAccessException
A ConcurrentAccessException indicates that the client has attempted an invocation on a
stateful session bean while another invocation is in progress.
|
class |
ConcurrentAccessTimeoutException
This exception indicates that an attempt to concurrently
access a bean method resulted in a timeout.
|
class |
EJBAccessException
An AccessLocalException is thrown to indicate that the caller does not
have permission to call the method.
|
class |
EJBTransactionRequiredException
This exception indicates that a request carried a null transaction context,
but the target object requires an activate transaction.
|
class |
EJBTransactionRolledbackException
This exception indicates that the transaction associated with processing
of the request has been rolled back, or marked to roll back.
|
class |
IllegalLoopbackException
This exception indicates that an attempt was made to perform an illegal loopback
invocation on a Singleton with container-managed concurrency.
|
class |
NoMoreTimeoutsException
This exception indicates that a calendar-based timer will not result in any more timeouts.
|
class |
NoSuchEJBException
A NoSuchEJBException is thrown if an attempt is made to invoke
a method on an object that no longer exists.
|
class |
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.
|
class |
NoSuchObjectLocalException
A NoSuchObjectLocalException is thrown if an attempt is made to invoke
a method on an object that no longer exists.
|
class |
TransactionRequiredLocalException
This exception indicates that a request carried a null transaction context,
but the target object requires an activate transaction.
|
class |
TransactionRolledbackLocalException
This exception indicates that the transaction associated with processing
of the request has been rolled back, or marked to roll back.
|
Modifier and Type | Method and Description |
---|---|
void |
SessionSynchronization.afterBegin()
The afterBegin method notifies a 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.
|
void |
SessionSynchronization.afterCompletion(boolean committed)
The afterCompletion method notifies a session Bean instance that a transaction commit protocol has
completed, and tells the instance whether the transaction has been committed or rolled back.
|
void |
SessionSynchronization.beforeCompletion()
The beforeCompletion method notifies a session Bean instance that a transaction is about to be committed.
|
void |
Timer.cancel()
Cause the timer and all its associated expiration notifications to be canceled.
|
Timer |
TimerService.createCalendarTimer(ScheduleExpression schedule)
Create a calendar-based timer based on the input schedule expression.
|
Timer |
TimerService.createCalendarTimer(ScheduleExpression schedule,
TimerConfig timerConfig)
Create a calendar-based timer based on the input schedule expression.
|
Timer |
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.
|
Timer |
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.
|
Timer |
TimerService.createSingleActionTimer(Date expiration,
TimerConfig timerConfig)
Create a single-action timer that expires at a given point in time.
|
Timer |
TimerService.createSingleActionTimer(long duration,
TimerConfig timerConfig)
Create a single-action timer that expires after a specified duration.
|
Timer |
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.
|
Timer |
TimerService.createTimer(Date expiration,
Serializable info)
Create a single-action timer that expires at a given point in time.
|
Timer |
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.
|
Timer |
TimerService.createTimer(long duration,
Serializable info)
Create a single-action timer that expires after a specified duration.
|
void |
SessionBean.ejbActivate()
The activate method is called when the instance is activated from its "passive" state.
|
void |
EntityBean.ejbActivate()
A container invokes this method when the instance is taken out of the pool of available
instances to become associated with a specific EJB object.
|
void |
EntityBean.ejbLoad()
A container invokes this method to instruct the instance to synchronize its state by loading
it state from the underlying database.
|
void |
SessionBean.ejbPassivate()
The passivate method is called before the instance enters the "passive" state.
|
void |
EntityBean.ejbPassivate()
A container invokes this method on an instance before the instance becomes disassociated with
a specific EJB object.
|
void |
SessionBean.ejbRemove()
A container invokes this method before it ends the life of the session object.
|
void |
MessageDrivenBean.ejbRemove()
A container invokes this method before it ends the life of the message-driven object.
|
void |
EntityBean.ejbRemove()
A container invokes this method before it removes the EJB object that is currently associated
with the instance.
|
void |
EntityBean.ejbStore()
A container invokes this method to instruct the instance to synchronize its state by storing it to
the underlying database.
|
Collection<Timer> |
TimerService.getAllTimers()
Returns all active timers associated with the beans in the same module in which the caller
bean is packaged.
|
EJBLocalHome |
EJBLocalObject.getEJBLocalHome()
Obtain the enterprise Bean's local home interface.
|
TimerHandle |
Timer.getHandle()
Get a serializable handle to the timer.
|
Serializable |
Timer.getInfo()
Get the information associated with the timer at the time of creation.
|
Date |
Timer.getNextTimeout()
Get the point in time at which the next timer expiration is scheduled to occur.
|
Object |
EJBLocalObject.getPrimaryKey()
Obtain the primary key of the EJB local object.
|
ScheduleExpression |
Timer.getSchedule()
Get the schedule expression corresponding to this timer.
|
Timer |
TimerHandle.getTimer()
Obtain a reference to the timer represented by this handle.
|
long |
Timer.getTimeRemaining()
Get the number of milliseconds that will elapse before the next scheduled timer expiration.
|
Collection<Timer> |
TimerService.getTimers()
Get all the active timers associated with this bean.
|
boolean |
Timer.isCalendarTimer()
Query whether this timer is a calendar-based timer.
|
boolean |
EJBLocalObject.isIdentical(EJBLocalObject obj)
Test if a given EJB local object is identical to the invoked EJB local object.
|
boolean |
Timer.isPersistent()
Query whether this timer has persistent semantics.
|
void |
EJBLocalObject.remove()
Remove the EJB local object.
|
void |
EJBLocalHome.remove(Object primaryKey)
Remove an EJB object identified by its primary key.
|
void |
EntityBean.setEntityContext(EntityContext ctx)
Set the associated entity context.
|
void |
MessageDrivenBean.setMessageDrivenContext(MessageDrivenContext ctx)
Set the associated message-driven context.
|
void |
SessionBean.setSessionContext(SessionContext ctx)
Set the associated session context.
|
void |
EntityBean.unsetEntityContext()
Unset the associated entity context.
|
Modifier and Type | Method and Description |
---|---|
static EJBContainer |
EJBContainer.createEJBContainer()
Create and initialize an embeddable EJB container.
|
static EJBContainer |
EJBContainer.createEJBContainer(Map<?,?> properties)
Create and initialize an embeddable EJB container with an
set of configuration properties and names of modules to be initialized.
|
Modifier and Type | Method and Description |
---|---|
EJBContainer |
EJBContainerProvider.createEJBContainer(Map<?,?> properties)
Called by the embeddable container bootstrap process to find a suitable embeddable container
implementation.
|
Modifier and Type | Method and Description |
---|---|
EJBException |
Logs_$logger.invalidViewTypeForInvocation(String serverMessage) |
EJBException |
Logs.invalidViewTypeForInvocation(String serverMessage) |
EJBException |
Logs_$logger.operationInterrupted() |
EJBException |
Logs.operationInterrupted() |
Copyright © 2017 JBoss by Red Hat. All rights reserved.