Hi Wilem,

Thank you for the response. 

Usecase: Need to implement Async Service. So we have used jms queue
(Camel-jms) and camel-http  components.

  Httpclient -- camel-http (<from
uri="jetty:http://0.0.0.0:8192/mib401Asyncreq/"/>)- jms queue provider ---> 
queue consumer --->http  target (http) service

If I don’t use bridgeEndpoint  found below exception.
java.lang.IllegalArgumentException: Invalid uri:
/mib401Asyncreq/mib401Asyncreq/. If you are forwarding/bridging http
endpoints, then enable the bridgeEndpoint option on the endpoint:
Endpoint[http://localhost:8080/jsp-examples/checkbox/nipr.jsp]

If I use bridgeEndpoint found below exception: 
Obesered URL value is changing in the run time and adding first route uri

First route or incoming endpoint :  <from
uri="jetty:http://0.0.0.0:8192/mib401Asyncreq/"/>
To uri: <to
uri="http://localhost:8080/jsp-examples/checkbox/nipr.jsp?bridgeEndpoint=true"/>
 
                                                
Changing uri dynamically like below:

        | 100 - org.apache.camel.camel-http - 2.8.3 | Executing http POST
method: http://localhost:8080/jsp-examples/checkbox/nipr.jsp/mib401Asyncreq/

I attached log files and beans xml for your reference. Please suggest me why
the url value is replacing in runtime.

Is this the right way to implement httpJms Bridge? Please suggest
http://camel.465427.n5.nabble.com/file/n5714542/beans.xml.txt beans.xml.txt 
http://camel.465427.n5.nabble.com/file/n5714542/servicemix_log_with_bridgeEndpoint.log
servicemix_log_with_bridgeEndpoint.log 
http://camel.465427.n5.nabble.com/file/n5714542/servicemix_log_without_bridgeEndpoint.log
servicemix_log_without_bridgeEndpoint.log 

--
View this message in context: 
http://camel.465427.n5.nabble.com/jms-to-http-tp5714372p5714542.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to