SwitchYard
  1. SwitchYard
  2. SWITCHYARD-614

JMS Headers not available on Camel Route

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 0.3
    • Fix Version/s: 0.4
    • Component/s: component-camel
    • Labels:
      None
    • Environment:
      MacOSX 10.7.2, java version "1.6.0_29" jboss-as-7.1.0.CR1b
    • Steps to Reproduce:
      Hide
      • git clone https://github.com/cvasilak/nms-java-parent
      • cd nms-java-parent
      • mvn install
      • cd ..
      • git clone https://github.com/cvasilak/svc-rrd-parent
      • cd svc-rrd-parent
      • mvn clean install -Dmaven.test.skip=true
      • cp svc-rrd-model/target/svc-rrd-model-1.0-SNAPSHOT.jar /jboss-as-7.1.0.CR1b/standalone/deployments/
      • cp svc-rrd-service/target/svc-rrd-service-1.0-SNAPSHOT.jar /jboss-as-7.1.0.CR1b/standalone/deployments/
      • cd svc-rrd-service/
      • mvn test

      The test will create A JMS message, set a header property to "type":"register" and send it to server together with JSON payload body.

      Watch on the console that only the property breadcrumbId is printed out.

      10:25:35,639 INFO [stdout] (Camel (camel-4) thread #0 - JmsConsumer[svc_rrd_ctrl_bus) breadcrumbId: ID-casper-rd-forthnet-gr-50333-1326443118227-1-2

      Show
      git clone https://github.com/cvasilak/nms-java-parent cd nms-java-parent mvn install cd .. git clone https://github.com/cvasilak/svc-rrd-parent cd svc-rrd-parent mvn clean install -Dmaven.test.skip=true cp svc-rrd-model/target/svc-rrd-model-1.0-SNAPSHOT.jar /jboss-as-7.1.0.CR1b/standalone/deployments/ cp svc-rrd-service/target/svc-rrd-service-1.0-SNAPSHOT.jar /jboss-as-7.1.0.CR1b/standalone/deployments/ cd svc-rrd-service/ mvn test The test will create A JMS message, set a header property to "type":"register" and send it to server together with JSON payload body. Watch on the console that only the property breadcrumbId is printed out. 10:25:35,639 INFO [stdout] (Camel (camel-4) thread #0 - JmsConsumer[svc_rrd_ctrl_bus) breadcrumbId: ID-casper-rd-forthnet-gr-50333-1326443118227-1-2
    • Similar Issues:
      Show 10 results 

      Description

      When trying to access the JMS headers from a Camel Route, the list returned contains only one property[breadcrumbId]. All other properties are discarded.

        Activity

        David Ward
        made changes -
        Field Original Value New Value
        Assignee David Ward [ dward ]
        David Ward
        made changes -
        David Ward
        made changes -
        Fix Version/s 0.4 [ 12318294 ]
        Git Pull Request https://github.com/cvasilak/svc-rrd-parent https://github.com/cvasilak/svc-rrd-parent
        Affects Version/s 0.3 [ 12317292 ]
        Affects Version/s 0.4 [ 12318294 ]
        Forum Reference https://community.jboss.org/thread/177322?tstart=0 https://community.jboss.org/thread/177322?tstart=0
        Christos Vasilakis
        made changes -
        Git Pull Request https://github.com/cvasilak/svc-rrd-parent https://github.com/cvasilak/svc-rrd-parent
        Steps to Reproduce - git clone https://github.com/cvasilak/svc-rrd-parent
        - cd svc-rrd-parent
        - mvn clean install -Dmaven.test.skip=true
        - cp svc-rrd-model/target/svc-rrd-model-1.0-SNAPSHOT.jar /jboss-as-7.1.0.CR1b/standalone/deployments/
        - cp svc-rrd-service/target/svc-rrd-service-1.0-SNAPSHOT.jar /jboss-as-7.1.0.CR1b/standalone/deployments/
        - cd svc-rrd-service/
        - mvn test

        The test will create A JMS message, set a header property to "type":"register" and send it to server together with JSON payload body.

        Watch on the console that only the property breadcrumbId is printed out.

        10:25:35,639 INFO [stdout] (Camel (camel-4) thread #0 - JmsConsumer[svc_rrd_ctrl_bus) breadcrumbId: ID-casper-rd-forthnet-gr-50333-1326443118227-1-2
        - git clone https://github.com/cvasilak/nms-java-parent
        - cd nms-java-parent
        - mvn install
        - cd ..
        - git clone https://github.com/cvasilak/svc-rrd-parent
        - cd svc-rrd-parent
        - mvn clean install -Dmaven.test.skip=true
        - cp svc-rrd-model/target/svc-rrd-model-1.0-SNAPSHOT.jar /jboss-as-7.1.0.CR1b/standalone/deployments/
        - cp svc-rrd-service/target/svc-rrd-service-1.0-SNAPSHOT.jar /jboss-as-7.1.0.CR1b/standalone/deployments/
        - cd svc-rrd-service/
        - mvn test

        The test will create A JMS message, set a header property to "type":"register" and send it to server together with JSON payload body.

        Watch on the console that only the property breadcrumbId is printed out.

        10:25:35,639 INFO [stdout] (Camel (camel-4) thread #0 - JmsConsumer[svc_rrd_ctrl_bus) breadcrumbId: ID-casper-rd-forthnet-gr-50333-1326443118227-1-2
        Forum Reference https://community.jboss.org/thread/177322?tstart=0 https://community.jboss.org/thread/177322?tstart=0
        David Ward
        made changes -
        Status Open [ 1 ] Pull Request Sent [ 10011 ]
        Git Pull Request https://github.com/cvasilak/svc-rrd-parent https://github.com/jboss-switchyard/components/pull/278
        Keith Babo
        made changes -
        Status Pull Request Sent [ 10011 ] Resolved [ 5 ]
        Resolution Done [ 1 ]

          People

          • Assignee:
            David Ward
            Reporter:
            Christos Vasilakis
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: