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 an assembly tool such as the Application Server Toolkit (AST) or Rational Web Developer.
This topic describes the use of the Application Server Toolkit (AST) to configure the ActivitySession deployment attributes. These attributes are in addition to other deployment attributes, like Load at (which specifies when the bean loads its state from the database). This task description assumes that you have an EAR file, which contains an application enterprise bean that can be deployed in WebSphere Application Server. For more details about assembling applications, see assembling applications. For more detail about the fields in the assembly tool, and for associated task help, see the help information provided with the toolkit.
To set the ActivitySession deployment attributes for an enterprise bean, complete the following steps:
Steps for this task
For example, to change attributes of an existing application, use the import wizard to import the EAR file into the assembly tool. To start the import wizard:
The ActivityRequiredException exception is javax.rmi.RemoteException.
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.
How the container manages the ActivitySession boundaries when delegating a method invocation depends on both the ActivitySession kind set here, and the Container transaction type as described inSetting transactional attributes in the deployment descriptor. For more detail about the relationship between these two properties, see Combining transaction and ActivitySession container policies.
What to do next
After assembling your application, use a systems management tool to deploy the EAR file onto the application server that is to run the application; for example, using the administrative console as described in Deploying and managing applications.Related concepts
The ActivitySession service
Related reference
Combining transaction and ActivitySession container
policies