+

Search Tips   |   Advanced Search

WSReliableMessaging policy and binding properties


Use the attributes parameter for the setPolicyType and setBinding commands to specify additional configuration information for the ReliableMessaging policy and policy set binding. The WSReliableMessaging quality of service (QoS) is only available for application policy sets.

WSReliableMessaging is an interoperability standard for the reliable transmission of messages between two endpoints. Use WSReliableMessaging to secure and verify transactions when using Web services between businesses.

Use the following commands and parameters in the PolicySetManagement group of AdminTask to customize the policy set configuration.

If a property name or value supplied with the attributes parameter is not valid, then the setPolicyType and setBinding commands fail with an exception. The property not valid is logged as an error or warning in SystemOut.log. However, the command exception might not contain the detailed information for the property that caused the exception. When the setPolicyType and setBinding commands fail, examine SystemOut.log for any error and warning messages that indicate that the input for the attributes parameter contains one or multiple properties that are not valid.

For transitioning users: In WAS Version 7.0, the security model is enhanced to a domain-centric security model instead of a server-based security model. The configuration of the default global security (cell) level and default server level bindings has also changed in this version of WAS ND. In the WAS V 6.1 Feature Pack for Web Services, we can configure one set of default bindings for the cell and optionally configure one set of default bindings for each server. In V7.0, we can configure one or more general service provider bindings and one or more general service client bindings. After we have configured general bindings, we can specify which of these bindings is the global default binding. We can also optionally specify general binding that are used as the default for an appserver or a security domain. trns

To support a mixed-cell environment, WAS supports V7.0 and V6.1 bindings. General cell-level bindings are specific to V7.0 Application-specific bindings remain at the version that the application requires. When the user creates an application-specific binding, the appserver determines the required binding version to use for application.

 

WSReliableMessaging policy properties

Set the WSReliableMessaging policy by specifying the following properties with the setPolicyType command:

specLevel

Choose the WS-ReliableMessaging standard to use for reliable transmission of the messages. The WS-ReliableMessaging spec V1.1 is the default value. Use the following information to choose a specification level:

  • Specify 1.0 as the value for the specLevel attribute to use the WS-ReliableMessaging spec V1.0, February 2005 spec level.

  • Specify 1.1 as the value for the specLevel attribute to use the OASIS WS-ReliableMessaging spec V1.1, August 2006 spec level.

The following example code sets the specLevel property to the OASIS WS-ReliableMessaging spec V1.1, August 2006:

AdminTask.setPolicyType('[-policySet "CustomWSReliableMessaging"  -policyType 
 WSReliableMessaging -attributes "[[specLevel 1.1]]"]')

inOrderDelivery

Specifies whether to process messages in the order that they are received. If we use the inOrderDelivery property, then inbound messages might be queued while waiting for earlier messages.

The following example code enables the inOrderDelivery property:

AdminTask.setPolicyType('[-policySet "CustomWSReliableMessaging" -policyType WSReliableMessaging -attributes "[[inOrderDelivery true]]"]')

qualityOfService

Quality of the WSReliableMessaging service to use. Define one of the following three values for the qualityOfService attribute:

  • unmanagedNonPersistent

    This setting tolerates network and remote system failures. The unmanagedNonPersistent quality of service is non-transactional. With this setting configured, messages are lost if a server fails. This quality of service is supported for all environments only if the environment is configured as a Web service requester.

  • managedNonPersistent

    This setting tolerates system, network, and remote system failures. However, the message state is discarded when the messaging engine restarts. The managedNonPersistent quality of service is non-transactional. This setting prevents message loss if a server fails. However, messages are lost if the messaging engine fails. Managed and thin client applications cannot use this quality of service.

  • managedPersistent

    This setting tolerates system, network, and remote system failures. With this setting, messages are processed within transactions, persisted at the Web service requester and provider. Messages can be recovered if a server fails. Messages that are not successfully transmitted at the time of failure continue when the messaging engine or application restarts. Managed and thin client applications cannot use this quality of service.

The following example sets the qualityOfService property as unmanaged nonpersistent:

AdminTask.setPolicyType('[-policySet "CustomWSReliableMessaging" -policyType 
 WSReliableMessaging -attributes "[[qualityOfService unmanagedNonPersistent]]"]')

The following example uses the setPolicyType command to set a value for each policy property:

AdminTask.setPolicyType('[-policySet "CustomWSReliableMessaging" -policyType 
 WSReliableMessaging -attributes "[[specLevel 1.1][inOrderDelivery true][qualityOfService 
 unmanagedNonPersistent]]"]')

 

WSReliableMessaging binding configuration attributes

If we set the qualityOfService policy property to managedNonPersistent or managedPersistent, configure the WSReliableMessaging binding by specifying values for the following properties with the setBinding command:

busName

The name of the service integration bus that contains the messaging engine to use for the managedNonPersistent or managedPersistent Quality of Service options.

The following example sets the busName property as myBus:

AdminTask.setBinding('[-bindingLocation "" -bindingName cellWideBinding2 -policyType 
 WSReliableMessaging -attributes "[[busName myBus]]"]')

messagingEngineName

The name of the messaging engine to use for the managedNonPersistent or managedPersistent quality of service options.

The following example sets the messagingEngineName property as messagingEngine001:

AdminTask.setBinding('[-bindingLocation "" -bindingName cellWideBinding2 -policyType 
 WSReliableMessaging -attributes "[[messageEngineName messageEngine001]]"]')

The following code example demonstrates how to use the setBinding command to set values for each binding attribute:

AdminTask.setBinding('[-bindingLocation "" -bindingName cellWideBinding2 -policyType 
 WSReliableMessaging -attributes "[[busName myBus][messageEngineName messageEngine001]]"]')




Related concepts


WS-ReliableMessaging default policy sets

 

Related tasks


Set application and system policy sets for Web services using scripting
Learn about WS-ReliableMessaging

 

Related


PolicySetManagement

 

Related information


The WS-ReliableMessaging specification V1.0, February 2005
The OASIS WS-ReliableMessaging specification V1.1, August 2006.