PDA

View Full Version : Outbound Gateway Message Conversion Error



Pranshu Goel
Feb 24th, 2010, 11:11 AM
I have created a org.springframework.integration.core.Message with a String Payload. I have to send this payload as JMS Message to Queue (MQ).

It is strange when I am sending the message over using SimpleMessageConvertor it treats the message as Serializable and creates a JMSObjectMessage type instead of TextMessage. Can anyone help on this please.

<jms:outbound-gateway id="stbOutboundJmsGateway"
connection-factory="singleConnectionFactory" request-channel="enrichedHeaderHttpChannel"
reply-channel="stbResponseChannel" reply-timeout="3000"
extract-request-payload="true" extract-reply-payload="true"
request-destination="sendDestination" reply-destination="replyDestination"
message-converter="messageConverter" delivery-mode="1"
priority="5" />

<bean id="messageConverter" class="org.springframework.jms.support.converter.SimpleMe ssageConverter" />

Regards,
Pranshu Goel