Announcement Announcement Module
Collapse
No announcement yet.
Outbound Gateway Message Conversion Error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Outbound Gateway Message Conversion Error

    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.S impleMessageConverter" />

    Regards,
    Pranshu Goel
Working...
X