Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop web services - Transports > Configure the SOAP over JMS transport for JAX-WS web services


Configure SOAP over JMS message types

We can configure your 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 your web services that use the emerging industry standard SOAP over JMS protocol, you 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 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:


Procedure


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


Related


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

+

Search Tips   |   Advanced Search