public interface ServiceActivityFactory
An SBB obtains access to a ServiceActivityFactory
object via
its JNDI environment. The Service 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
ServiceActivityFactory
object is bound into an SBB's JNDI environment. |
Modifier and Type | Method and Description |
---|---|
ServiceActivity |
getActivity()
Get the Service activity object for the invoking SBB.
|
static final String JNDI_NAME
ServiceActivityFactory
object is bound into an SBB's JNDI environment.
The value of this constant is "java:comp/env/slee/serviceactivity/factory".
ServiceActivity getActivity() throws TransactionRequiredLocalException, FactoryException
As this method takes no arguments, it is the responsibility of the SLEE to provide an appropriate implementation for the SBBs in each Service.
This method is a mandatory transactional method.
TransactionRequiredLocalException
- if this method is invoked without a
valid transaction context.FactoryException
- if the Service activity could not be obtained due to a
system-level failure.