2 Replies Latest reply on Dec 21, 2009 4:15 AM by lekkie_lomotayo

    Camel not returning response from jbi component

    lekkie_lomotayo

      Hi guys,

       

      I noticed that camel returns the request message sent to a jbi component nmr:service:endpoint instead of the response returned by the jbi component.

       

      I can confirm that the jbi component actually sends the request to the remote webservice and receives a response. I also noticed that this action is not consistent as camel sometimes receives response from the jbi component and most of the time it does not.

       

      here is my route:

       

             

            <to uri="nmr:Service:ServiceSoap"/>

      </route>

       

       

      How can I print out the logs of a jbi component?

      Thanks

        • 1. Re: Camel not returning response from jbi component
          davsclaus

          And you are sure the MEP is InOut?

          • 2. Re: Camel not returning response from jbi component
            lekkie_lomotayo

            Hi,

             

            I tired this but got an error

             

            <to uri="nmr:Service:ServiceSoap?mep=in-out"/>

             

            the error says

             

            org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: nmr://Service:ServiceSoap?mep=in-out due to: Failed to resolve endpoint: nmr://Service:ServiceSoap?mep=in-out due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{mep=in-out}]

                 at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:433)

             

            What is the appropriate syntax?

             

            Note that if I add the endpoint command to the uri (nmr:endpoint:Service:ServiceSoap), servicemix fails to find the service

             

             

            Regards.

             

            Edited by: lekkie on Dec 21, 2009 9:12 AM