javax.slee.serviceactivity
Interface ServiceActivityFactory


public interface ServiceActivityFactory

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

SBB JNDI Location:
java:comp/env/slee/serviceactivity/factory

See Also:
ServiceActivity, ServiceActivityContextInterfaceFactory

Method Summary
 ServiceActivity getActivity()
          Get the Service activity object for the invoking SBB.
 

Method Detail

getActivity

public 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.