From 2d34abe163ae6d2d6d120ba72e838c45ad0693fa Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Tue, 18 Dec 2007 19:10:12 +0000 Subject: [PATCH] SWS-255 --- src/docbkx/client.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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: