public interface ServiceActivityContextInterfaceFactory
ActivityContextInterface
object for a Service activity.
An SBB obtains access to a ServiceActivityContextInterfaceFactory
object via its JNDI environment. The Service Activity Context Interface Factory
is bound into JNDI using the name specified by JNDI_NAME
.
ServiceActivity
,
ServiceActivityFactory
Modifier and Type | Field and Description |
---|---|
static String |
JNDI_NAME
Constant declaring the JNDI name where a
ServiceActivityContextInterfaceFactory object is bound into
an SBB's JNDI environment. |
Modifier and Type | Method and Description |
---|---|
ActivityContextInterface |
getActivityContextInterface(ServiceActivity activity)
Get an
ActivityContextInterface object for a Service activity. |
static final String JNDI_NAME
ServiceActivityContextInterfaceFactory
object is bound into
an SBB's JNDI environment.
The value of this constant is "java:comp/env/slee/serviceactivity/activitycontextinterfacefactory".
ActivityContextInterface getActivityContextInterface(ServiceActivity activity) throws NullPointerException, TransactionRequiredLocalException, UnrecognizedActivityException, FactoryException
ActivityContextInterface
object for a Service activity.
This method is a mandatory transactional method.
activity
- the Service activity.ActivityContextInterface
object that encapsulates the
Service activity.NullPointerException
- if activity
is null
.TransactionRequiredLocalException
- if this method is invoked without a
valid transaction context.UnrecognizedActivityException
- if activity
is not a
valid Service activity created by the SLEE.FactoryException
- if the ActivityContextInterface
object
could not be created due to a system-level failure.