Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3614

extract-payload="false" is ignored by JMS inbound-channel-adapter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.0.6, 4.0.6, 4.1.2
    • Fix Version/s: 3.0.7, 4.2 M1, 4.0.7, 4.1.3
    • Component/s: JMS Support
    • Labels:
    • Environment:
      Windows, Java 1.7.0-60, Weblogic 12c

      Description

      When using the JMS inbound-channel-adapter, it ignores the extract-payload="false" flag. This does not happen when using inbound-gateway.

      This was tested using a war within Weblogic 12c.

      The message was sent to a service activator which took an Object as an argument and printed out the context and Object class type.

      inbound-gateway produced: weblogic.jms.common.TextMessageImpl
      inbound-channel-adapter produced: java.lang.String

        <jms:inbound-gateway id="jmsin" 
          request-destination="requestQueue" 
          request-channel="validateChannel" 
          extract-request-payload="false"/>
      
          <jms:inbound-channel-adapter id="jmsin" 
            destination="requestQueue" 
            channel="validateChannel" 
            extract-payload="false">
          <int:poller cron="*/5 * * * * *" />    
        </jms:inbound-channel-adapter>
        

      This conflicts with the documented behaviour at http://docs.spring.io/spring-integration/reference/html/jms.html

      An example provided here is:

      <int-jms:inbound-channel-adapter id="jmsIn"
          destination="inQueue"
          channel="exampleChannel"
          extract-payload="false"/>
          <int:poller fixed-rate="30000"/>
      </int-jms:inbound-channel-adapter>
      

      I have not investigated further at this stage or produced a test case.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            mcauleyt Tim McAuley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: