public interface NullActivityFactory
An SBB obtains access to a NullActivityFactory
object via its
JNDI environment. The Null Activity Factory is bound into JNDI using the
name specified by JNDI_NAME
.
Modifier and Type | Field and Description |
---|---|
static String |
JNDI_NAME
Constant declaring the JNDI name where a
NullActivityFactory
object is bound into an SBB's JNDI environment. |
Modifier and Type | Method and Description |
---|---|
NullActivity |
createNullActivity()
Create a new null activity.
|
static final String JNDI_NAME
NullActivityFactory
object is bound into an SBB's JNDI environment.
The value of this constant is "java:comp/env/slee/nullactivity/factory".
NullActivity createNullActivity() throws TransactionRequiredLocalException, FactoryException
This method is a mandatory transactional method. The null activity will only be created if the transaction invoking this method commits successfully.
TransactionRequiredLocalException
- if this method is invoked without a valid transaction
context.FactoryException
- if the null activity could not be created due to a
system-level failure.