1 2 Previous Next 17 Replies Latest reply on Dec 24, 2010 3:25 AM by Claus Ibsen

    [Fuse 4.3.0] Camel route MessageExchange out problem

    Stéphane Pain Newbie

      Hi,

       

        I try to make a camel route in xml with the tag  custom bean

       

      My custom bean write in the out MessageExchange with the line :

      exchange.setMessage(out, "out");

       

      My problem is that the out is send to camel but camel change the out by the in.

       

      If I look the log, we can see that my camel route change the out message.

       

      Can you help because I need to get the out message from the custom bean in my application

       

      Thank you

       

      14:40:04,197 | INFO  | 2@qtp-21451897-0 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   38 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Sending exchange: [

        id:        facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

        mep:       InOut

        status:    Active

        role:      Consumer

        target:    PropertyMatchingReference[{ENDPOINT_NAME=choice, SERVICE_NAME={http://servicemix.apache.org/router}SingleImport}]

        properties: [

            org.apache.servicemix.senderEndpoint = HttpIn:single

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@17e7420

            javax.jbi.messaging.sendSync =

            javax.jbi.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.ServiceEndpointImpl@f9edf3

            org.apache.servicemix.correlationId = facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

            javax.jbi.ServiceName = SingleImport

        ]

        In: [

          content: javax.xml.transform.stream.StreamSource@81e91b

        ]

      ]

       

      14:40:04,197 | INFO  | 2@qtp-21451897-0 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   43 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Source endpoint: 43d7f2ee-9159-4ad7-aaea-a55af35c8f5f

      14:40:04,197 | INFO  | 2@qtp-21451897-0 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   56 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Receiving exchange: [

        id:        facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

        mep:       InOut

        status:    Active

        role:      Provider

        target:    PropertyMatchingReference[{ENDPOINT_NAME=choice, SERVICE_NAME={http://servicemix.apache.org/router}SingleImport}]

        properties: [

            org.apache.servicemix.senderEndpoint = HttpIn:single

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@17e7420

            javax.jbi.messaging.sendSync =

            javax.jbi.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.ServiceEndpointImpl@f9edf3

            org.apache.servicemix.correlationId = facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

            javax.jbi.ServiceName = SingleImport

        ]

        In: [

          content: javax.xml.transform.stream.StreamSource@81e91b

        ]

      ]

       

      14:40:04,197 | INFO  | 2@qtp-21451897-0 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   60 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Dest endpoint: 38025c3a-dd5b-41f1-836a-f91ea162bb78

      14:40:04,197 | INFO  | 2@qtp-21451897-0 | AnnotationTypeConverterLoader    | er.AnnotationTypeConverterLoader   66 | 68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Found 3 packages with 0 @Converter classes to load

      14:40:04,197 | INFO  | 2@qtp-21451897-0 | DefaultTypeConverter             | l.converter.DefaultTypeConverter  397 | 68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Loaded 0 type converters in 0.000 seconds

      14:40:04,463 | INFO  | x-camel-thread-2 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   38 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Sending exchange: [

        id:        cd5b968f-3a73-4fa9-9288-20cc90958d16

        mep:       InOut

        status:    Active

        role:      Consumer

        target:    PropertyMatchingReference[{ENDPOINT_NAME=talend, SERVICE_NAME={http://servicemix.apache.org/import}BeanIn}]

        properties: [

            org.apache.servicemix.senderEndpoint = provider:ID:10.40.9.192-12ccb5b805d-12:0

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@3fe977

            javax.jbi.messaging.sendSync = ]

        ]

      ]

       

      14:40:04,463 | INFO  | x-camel-thread-2 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   43 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Source endpoint: dc054fad-ccf0-499a-8e1f-cf1fdfb64b51

      14:40:04,463 | INFO  | x-camel-thread-2 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   56 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Receiving exchange: [

        id:        cd5b968f-3a73-4fa9-9288-20cc90958d16

        mep:       InOut

        status:    Active

        role:      Provider

        target:    PropertyMatchingReference[{ENDPOINT_NAME=talend, SERVICE_NAME={http://servicemix.apache.org/import}BeanIn}]

        properties: [

            org.apache.servicemix.senderEndpoint = provider:ID:10.40.9.192-12ccb5b805d-12:0

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@3fe977

            javax.jbi.messaging.sendSync = ]

        ]

      ]

       

      14:40:04,463 | INFO  | x-camel-thread-2 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   60 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Dest endpoint: d69f5b57-8c70-4b07-a7a5-081f58694290

      14:40:04,463 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  177 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter onMessageException

      14:40:04,463 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  374 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter readParameters

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  452 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit readParameters

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  246 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter runJob

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  463 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  463 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  463 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  463 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  487 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  463 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  487 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  487 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  463 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  487 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  487 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  487 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit getJobJarPath

      14:40:04,479 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  498 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter getJobMainClass

      14:40:04,494 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  528 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit getJobMainClass

      14:40:04,494 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  316 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Execute job java -Xms256M -Xmx1024M -Djava.library.path="C:\Program Files\apache-servicemix-4.3.0-fuse-00-00\connector\import\2\HQCloudCardManagerAccess_1.0\lib" -classpath "C:\Program Files\apache-servicemix-4.3.0-fuse-00-00\connector\import\2\HQCloudCardManagerAccess_1.0\HQCloudCardManagerAccess\classpath.jar" com.amano.horoquartz.hqCloud.cardManagerAccess.launcher.TalendJobLauncher --context=Default --context_param IMPORT_SOURCE_ID=2 --context_param FILENAME="C:/Program Files/apache-servicemix-4.3.0-fuse-00-00/connector/import/syncResult/import_2_20101209_144004.xml" --context_param EXTERNAL_REFERENCE=20101130A --context_param NAME=Pain

      14:40:08,572 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  336 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit runJob

      14:40:08,572 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  347 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Enter setOutMessage

      14:40:08,572 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  365 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit setOutMessage

      14:40:08,572 | INFO  | ix-bean-thread-2 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   38 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Sending exchange: [

        id:        cd5b968f-3a73-4fa9-9288-20cc90958d16

        mep:       InOut

        status:    Done

        role:      Provider

        target:    PropertyMatchingReference[{ENDPOINT_NAME=talend, SERVICE_NAME={http://servicemix.apache.org/import}BeanIn}]

        properties: [

            javax.jbi.servicedesc.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.EndpointImpl@3a2d43

            org.apache.servicemix.senderEndpoint = provider:ID:10.40.9.192-12ccb5b805d-12:0

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@3fe977

            javax.jbi.messaging.sendSync =

      ]

        ]

      ]

       

      14:40:08,572 | INFO  | ix-bean-thread-2 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   56 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Receiving exchange: [

        id:        cd5b968f-3a73-4fa9-9288-20cc90958d16

        mep:       InOut

        status:    Done

        role:      Consumer

        target:    PropertyMatchingReference[{ENDPOINT_NAME=talend, SERVICE_NAME={http://servicemix.apache.org/import}BeanIn}]

        properties: [

            javax.jbi.servicedesc.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.EndpointImpl@3a2d43

            org.apache.servicemix.senderEndpoint = provider:ID:10.40.9.192-12ccb5b805d-12:0

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@3fe977

            javax.jbi.messaging.sendSync =

      ]

        ]

      ]

       

      14:40:08,572 | INFO  | ix-bean-thread-2 | ImportMessageListenerBO          | loud.esb.ImportMessageListenerBO  231 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.5.2 | Exit onMessageException

      14:40:08,572 | INFO  | x-camel-thread-3 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   38 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Sending exchange: [

        id:        facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

        mep:       InOut

        status:    Active

        role:      Provider

        target:    PropertyMatchingReference[{ENDPOINT_NAME=choice, SERVICE_NAME={http://servicemix.apache.org/router}SingleImport}]

        properties: [

            javax.jbi.servicedesc.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.EndpointImpl@afe432

            org.apache.servicemix.senderEndpoint = HttpIn:single

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@17e7420

            javax.jbi.messaging.sendSync =

            javax.jbi.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.ServiceEndpointImpl@f9edf3

            org.apache.servicemix.correlationId = facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

            javax.jbi.ServiceName = SingleImport

        ]

        In: [

          content: javax.xml.transform.stream.StreamSource@81e91b

        ]

        Out: [

          content: StringSource[]

        ]

      ]

       

      14:40:08,572 | INFO  | x-camel-thread-3 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   56 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Receiving exchange: [

        id:        facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

        mep:       InOut

        status:    Active

        role:      Consumer

        target:    PropertyMatchingReference[{ENDPOINT_NAME=choice, SERVICE_NAME={http://servicemix.apache.org/router}SingleImport}]

        properties: [

            javax.jbi.servicedesc.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.EndpointImpl@afe432

            org.apache.servicemix.senderEndpoint = HttpIn:single

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@17e7420

            javax.jbi.messaging.sendSync =

            javax.jbi.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.ServiceEndpointImpl@f9edf3

            org.apache.servicemix.correlationId = facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

            javax.jbi.ServiceName = SingleImport

        ]

        In: [

          content: javax.xml.transform.stream.StreamSource@81e91b

        ]

        Out: [

          content: StringSource[]

        ]

      ]

       

      14:40:08,807 | INFO  | 2@qtp-21451897-0 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   38 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Sending exchange: [

        id:        facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

        mep:       InOut

        status:    Done

        role:      Consumer

        target:    PropertyMatchingReference[{ENDPOINT_NAME=choice, SERVICE_NAME={http://servicemix.apache.org/router}SingleImport}]

        properties: [

            javax.jbi.servicedesc.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.EndpointImpl@afe432

            org.apache.servicemix.senderEndpoint = HttpIn:single

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@17e7420

            javax.jbi.messaging.sendSync =

            javax.jbi.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.ServiceEndpointImpl@f9edf3

            org.apache.servicemix.correlationId = facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

            javax.jbi.ServiceName = SingleImport

        ]

        In: [

          content: javax.xml.transform.stream.StreamSource@81e91b

        ]

        Out: [

          content: StringSource[]

        ]

      ]

       

      14:40:08,807 | INFO  | 2@qtp-21451897-0 | HQCloudExchangeListener          | loud.esb.HQCloudExchangeListener   56 | 180 - HQCloudESBEndpointInterceptor - 1.0.0.beta5-SNAPSHOT | Receiving exchange: [

        id:        facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

        mep:       InOut

        status:    Done

        role:      Provider

        target:    PropertyMatchingReference[{ENDPOINT_NAME=choice, SERVICE_NAME={http://servicemix.apache.org/router}SingleImport}]

        properties: [

            javax.jbi.servicedesc.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.EndpointImpl@afe432

            org.apache.servicemix.senderEndpoint = HttpIn:single

            javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@17e7420

            javax.jbi.messaging.sendSync =

            javax.jbi.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.ServiceEndpointImpl@f9edf3

            org.apache.servicemix.correlationId = facc4f5a-ec82-4e3f-9c9b-1d58e144e20d

            javax.jbi.ServiceName = SingleImport

        ]

        In: [

          content: javax.xml.transform.stream.StreamSource@81e91b

        ]

        Out: [

          content: StringSource[]

        ]

      ]

        1 2 Previous Next