Use this task to set the ActivitySession deployment attributes for an enterprise bean to enable the bean to participate in an ActivitySession context and support ActivitySession-based operations.
Why and when to perform this task
You can configure the deployment attributes of an application by using the Deployment Descriptor Editor of WebSphere Studio Application Developer or the Application Assembly Tool.
To set the ActivitySession deployment attributes for an enterprise bean, use the Application Assembly Tool to complete the following steps:
Steps for this task
An enterprise bean with this activation policy is activated and passivated as follows:
Any received ActivitySession context is suspended for the duration of the method and resumed after the method ends. The container starts a new ActivitySession before method dispatch and completes it after the method ends.
The ActivityRequiredException exception is javax.rmi.RemoteException.
How the container manages the ActivitySession boundaries when delegating a method invocation depends on both the ActivitySession kind attribute, set here, and the Transaction attribute attribute, as described inConfiguring transactional deployment attributes using the Application Assembly Tool. For more detail about the relationship between these two properties, see Combining transaction and ActivitySession container policies.