+

Search Tips   |   Advanced Search

Configure SOAP over JMS message types

We can configure the SOAP over Java Message Service (JMS) request or response messages to use either BytesMessage or TextMessage objects.

A web service must be implemented as an enterprise bean for accessibility through the JMS transport.

For the web services that use the emerging industry standard SOAP over JMS protocol, we can configure the SOAP over JMS requests and responses to specify whether the messages are transmitted within JMS BytesMessage (javax.jms.BytesMessage) or TextMessage (javax.jms.TextMessage) objects. The default message type is BytesMessage.

If the JMS message is a BytesMessage, the body of the JMS message is binary data.

If the JMS message is a TextMessage, the body of the JMS message is string data. For example, consider configuring text messages if to implement an audit or logging facility that requires JMS messages that are human readable.

When using SOAP over JMS as a transport for web services request and response messages, it is important to understand the following performance considerations when deciding whether to use BytesMessage or TextMessage objects:


Results

You have configured a web service client to use either TextMessage or BytesMessage objects when using the SOAP over JMS protocol to transmit request and response messages.


Related tasks

  • Implement web services applications with JAX-WS
  • Implement web services applications with JAX-RPC
  • Implement static JAX-WS web services clients
  • Implement JAX-RPC web services clients
  • Configure endpoint URL information for JMS bindings

  • SOAP over JMS protocol
  • JMS endpoint URL syntax
  • Java virtual machine custom properties
  • JMS transport bindings
  • Web services specifications and APIs