javax.slee.serviceactivity
Interface ServiceActivityFactory


public interface ServiceActivityFactory

The Service Activity Factory is used by SBBs to get their Service activity object.

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.

See Also:
ServiceActivity, ServiceActivityContextInterfaceFactory

Field Summary
static java.lang.String JNDI_NAME
          Constant declaring the JNDI name where a ServiceActivityFactory object is bound into an SBB's JNDI environment.
 
Method Summary
 ServiceActivity getActivity()
          Get the Service activity object for the invoking SBB.
 

Field Detail

JNDI_NAME

static final java.lang.String JNDI_NAME
Constant declaring the JNDI name where a ServiceActivityFactory object is bound into an SBB's JNDI environment.

The value of this constant is "java:comp/env/slee/serviceactivity/factory".

Since:
SLEE 1.1
See Also:
Constant Field Values
Method Detail

getActivity

ServiceActivity getActivity()
                            throws TransactionRequiredLocalException,
                                   FactoryException
Get the Service activity object for the invoking SBB.

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.

Throws:
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.


Copyright © 2009. All Rights Reserved.