WAS v8.5 > Develop applications > Develop Work area

Propagating work area context over Web services

WebSphere Application Server v6.1 introduces the option to propagate work area context on a Web service call. Prior to WAS v6.1, work area context was only propagated over RMI/IIOP calls. The work area APIs have not changed to implement this propagation. We 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, enable this option.

  1. Enable a server to propagate work area context on a Web service call.

    1. Start the dmgr console.
    2. Select Servers > Server Types > WebSphere application servers > server_name > Business Process Services .

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

    3. Check the EnableWebServicePropagation field to enable Web service propagation.
    4. Save the new configuration and restart the server to apply the new configuration.

  2. Enable a client to propagate work area context on a Web service call:

    The steps below 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.

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

    2. Set the property com.ibm.websphere.workarea.EnableWebServicePropagation in a property file used by the launchClient script. Refer to the Running a Java EE client application with launchClient for additional information.


Related concepts:

Work area partition service


Related


Configure work area partitions
Run a Java EE client application with launchClient


Reference:

The Work area partition manager interface
Example: Using the work area partition manager
Work area partition page
Work area partition settings
Work area service settings


+

Search Tips   |   Advanced Search