Using the JMS Binding Component

JMS message Element

The messageType and use attributes are required. The other attributes are optional.

Attribute 

Description 

Example 

messageType

Defines the type of JMS messages being created and sent to the JMS destination. The valid values are TextMessage and MapMessage.

 

parts 

If the messageTypeattribute is set to TextMessage, then this attribute defines the parts from the WSDL message that comprise the text payload. Each part in the list is delimited by a space.

msgPart1,msgPart2 

use 

Defines the use type that affects how the message is interpreted. This attribute is currently supported as a string literal. 

literal 

encodingStyle 

This attribute is reserved for future use. 

  

correlationIdPart

References the message part that contains the value for the JMSCorrelationID header.

partCorrelationID 

deliveryMode 

Defines the static value for the JMSDeliveryMode header.

NON_PERSISTENT 

deliveryModePart 

References the message part that contains the value for the JMSDeliveryMode header.

partDeliveryMode 

priority 

Defines the static value for the JMSPriority header.

priorityPart 

References the message part that contains the value for the JMSPriority header.

partPriority 

type 

Defines the static value for the JMSType header.

MyMessageType 

typePart 

References the message part that contains the value for the JMSType header.

partType 

The following example illustrates the JMS message extensibility element.


...
<jms:binding></jms:binding>
  <operation name="operationOneWayOut">
    <jms:operation destination="MyTopic"
                   destinationType="Topic"
                   messageSelector="JMSType='FOO.Type'"/>
      <input name="input">
        <!—jms:message defines the WSDL message to/from jms message mappings -->
        <jms:message messageType="MapMessage"
                     use="literal"
                     correlationIdPart=”msgPart1”
                     deliveryModePart=”msgPart2”
                     priorityPart=”msgPart3”
                     typePart=”msgPart4”
                     messageIDPart=”msgPart5”
                     timestampPart=”msgPart6”>
          <jms:mapmessage>
            <jms:mappart part="partBoolean" 
                         type="boolean" 
                         name="BooleanMapEntry">
            </jms:mappart>
            <jms:mappart part="partChar" 
                         type="char" 
                         name="CharMapEntry">
            </jms:mappart>
          </jms:mapmessage >
        </jms:message>
      </input>
    </jms:operation>
  </operation>
</jms:binding>
...