diff --git a/src/docbkx/client.xml b/src/docbkx/client.xml index 9cbd4f74..b9b18f51 100644 --- a/src/docbkx/client.xml +++ b/src/docbkx/client.xml @@ -99,7 +99,7 @@ For sending messages over JMS, Spring Web Services provides the JmsMessageSender. This class uses the facilities of the Spring framework to transform the WebServiceMessage into a JMS - BytesMessages, send it on its way on a + Message, send it on its way on a Queue or Topic, and receive a response (if any). @@ -113,6 +113,16 @@ For more information on this URI syntax, refer to the class level Javadocs of the JmsMessageSender. + + By default, the JmsMessageSender send JMS + BytesMessage, but + this can be overriden to use TextMessages by using the + messageType parameter on the JMS URI. For example: + jms:Queue?messageType=TEXT_MESSAGE. + Note that BytesMessages are the prefered type, because + TextMessages do not support attachments and charactering + encodings reliably. + The following example shows how to use the JMS transport in combination with an ActiceMQ connection factory: