public class JmsMessageReceiver extends SimpleWebServiceMessageReceiverObjectSupport
WebServiceMessageReceiver, and has
methods for handling incoming JMS BytesMessage and TextMessage requests. Also contains a
textMessageEncoding property, which determines the encoding used to read from and write to
TextMessages. This property defaults to UTF-8.
Used by WebServiceMessageListener.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_TEXT_MESSAGE_ENCODING
Default encoding used to read from and write to
TextMessage messages. |
logger| Constructor and Description |
|---|
JmsMessageReceiver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleMessage(Message request,
Session session)
Handles an incoming message.
|
void |
setPostProcessor(MessagePostProcessor postProcessor)
Sets the optional
MessagePostProcessor to further modify outgoing messages after the XML contents has
been set. |
void |
setTextMessageEncoding(String textMessageEncoding)
Sets the encoding used to read from and write to
TextMessage messages. |
afterPropertiesSet, getMessageReceiver, handleConnection, setMessageReceivergetMessageFactory, handleConnection, handleNoEndpointFoundException, setMessageFactorypublic static final String DEFAULT_TEXT_MESSAGE_ENCODING
TextMessage messages.public void setTextMessageEncoding(String textMessageEncoding)
TextMessage messages. Defaults to UTF-8.public void setPostProcessor(MessagePostProcessor postProcessor)
MessagePostProcessor to further modify outgoing messages after the XML contents has
been set.protected final void handleMessage(Message request, Session session) throws Exception
request - the incoming messagesession - the JMS session used to create a responseIllegalArgumentException - when request is not a BytesMessageException