javax.slee.serviceactivity
Interface ServiceActivity


public interface ServiceActivity

This interface is implemented by Service activity objects. Service activities can be used by SBBs to monitor the managed lifecycle of the Service they are a part of. When a Service is started, a Service activity is created and a ServiceStartedEvent is fired on the activity. When a Service is stopped, the Service activity is ended and a ActivityEndEvent is fired on the activity.

This interface is intentionally opaque to avoid exposing ServiceID objects to SBB entities in foreign services, in the event such as SBB entity gets a reference to a Service activity via a mechanism such as the Activity Context Naming Facility.

See Also:
ServiceActivityFactory, ServiceActivityContextInterfaceFactory