[Fix Pack 37 or later]


Suppressing the compensation service

Not all web servers are configured to handle SOAP messages containing CoordinationContext elements. You can use WebSphere Application Server to configure a custom property for the compensation service which processes a predefined list of Enterprise Java Beans for which no CoordinationContext should be sent on web service requests.

About this task

When the compensation service is used, CoordinationContext elements are included in the outgoing SOAP header. For example:
<wscoor:CoordinationContext soapenv:mustUnderstand="1"
...
</wscoor:CoordinationContext>
If such a SOAP message is received by a web server which is not configured to process CoordinationContext elements, an exception message is produced. See the following example:
Header block local name 'CoordinationContext' is not defined.
You can construct a file containing a list of all Enterprise Java Beans which should not send the CoordinationContext element in web service requests. This file must be in plain text format and must contain one entry per line, in the following format:
application_name#module#bean
application_name#module#bean
application_name#module#bean
Here application_name is the name of the application as known on the server; module is the name of the Enterprise Java Bean jar; and bean is the name of the Enterprise Java Bean.
Note: This file must only contain entries for beans not configured to use the compensation service. This custom property will not be effective for any beans listed in the file which have compensation service metadata associated with them.

Procedure

  1. Start the administrative console.
  2. In the navigation pane, click Servers > Application server > server_name > [Container Settings] Container Services > Compensation Service > [Additional Properties] Custom Properties
  3. Click New.
  4. Enter SUPPRESS_CSCOPE_ON_WS_CALLS in the Name filed.
  5. In the Value field, enter a fully qualified file name.
  6. Click Apply or OK.
  7. Click Save to save your changes to the master configuration.
  8. Restart the server.

Results

Web service requests sent from Enterprise Java Beans listed in the custom property file will not contain CoordinationContext metadata in the outgoing SOAP message header.



In this information ...


Related reference

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 31, 2013 2:56:59 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=twbs_suppress_cscope
File name: twbs_suppress_cscope.html