Results 1 to 5 of 5

Thread: jms outbound channel adaptor messagetype question

  1. #1
    Join Date
    Feb 2010
    Posts
    15

    Default jms outbound channel adaptor messagetype question

    Hi, I'm trying to send message via jms to ibm mq, when the receiver end receives the mesage, they are saying the message type for the message is missing. How does outbound channel adapter know what kind of message to send out? in the the splitchannel which comes from a splitter return a list of strings and do i need to specify special header values for the message type?

    <si-jms:outbound-channel-adapter id="jmsOut" channel="splitchannel" jms-template="senderJMSTemplate"/>

  2. #2
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    637

    Default

    Hi!

    Can you provide more info, e.g. StackTrace ?
    And e piece of config around <si-jms:outbound-channel-adapter>

    Take care,
    Artem

  3. #3
    Join Date
    May 2006
    Posts
    12

    Default

    In my opinion, when message Splits, headers are lost as a Collection is returned. You can use a header enricher if you want to specifically add MESSAGE-TYPE='TEXT_MESSAGE'

    Code:
    <header-enricher id="enricher" input-channel="inChannel" output-channel="outChannel">
    	    <header name="MESSAGE_TYPE" value="TEXT_MESSAGE"/>
    </header-enricher>

  4. #4
    Join Date
    Feb 2010
    Posts
    15

    Default

    thanks, but the default should be textmessage if the payload were string right? config below where getCustomers return a list of string, right? Also how do you tell if i send the message out correctly meaning i actually sent the message succefully

    <si-jms:outbound-channel-adapter id="jmsOut" channel="splitchannel" jms-template="senderJMSTemplate"/>

    <si:splitter input-channel="requestChannel" id="splitter"
    output-channel="splitchannel" ref="travelersplitter" method="getCustomers">
    </si:splitter>

  5. #5
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,021

    Default

    I suggest you run with debug logging to see what the payloads look like.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •