WebSphere® Application
Server Version 6.1 introduces the option to propagate work area context on
a Web service call. Prior to WebSphere Application Server Version 6.1, work
area context was only propagated over RMI/IIOP calls. The work area application
programming interfaces (APIs) have not changed to implement this propagation.
You can use the work area APIs as they have in the past and as outlined in
the work area documentation. However, by default, work area context is not
propagated on a Web service call, you must enable this option.
Procedure
- Enable a server to propagate work area context on a Web service
call.
- Start the administrative console.
- Select .
- To enable the work area service, (the UserWorkArea partition) to propagate
its context on a Web service call:
- Select Work area service.
- To enable an individual partition to propagate its context on a Web service
call:
- Select Work area partition service.
- Select a partition.
- Check the EnableWebServicePropagation field to enable Web service
propagation.
- Save the new configuration and restart the server to apply
the new configuration.
- Enable a client to propagate work area context on a Web service
call:
Note: The following steps are for the work area service (the UserWorkArea partition). For user
defined partitions the EnableWebServicePropagation property must be set when creating a partition on
the client, refer to the The Work area partition manager interface article.
- Set the property com.ibm.websphere.workarea.EnableWebServicePropagation
to true when invoking the launchClient script found in the $WAS_HOME/bin directory.
For example, to set this property to true, add the following system properties
to the launchClient invocation as needed: -CCDcom.ibm.websphere.workarea.EnableWebServicePropagation=true
- Set the property com.ibm.websphere.workarea.EnableWebServicePropagation
in a property file that is used by the launchClient script. Refer to the Running
a Java EE client application with launchClient for additional
information.