How to define a Camel Route with an HTTP for the "from" endpoint?
My goal is to define a Route that when there is an HTTP request, a Message will be enqueued on the ActiveMQ Queue.
I tried the following Route definition:
<route>
<from uri="http://localhost:8181/cxf/crm/customerservice/customers" />
<to uri="activemq:queue:LOG.ME" />
</route>
From a browser, I access the URL:
http://localhost:8181/cxf/crm/customerservice/customers/123
I had verified that the HTTP request had reach the web service "customerservice", since I received an XML response from the web service. However, no Message was enqueued on the ActiveMQ Queue.
Below is the Route definition that processes Messages from the ActiveMQ Queue.
<route>
<from uri="activemq:queue:LOG.ME" />
<multicast>
<pipeline>
<bean ref="processor1" method="handle" />
<to uri="mock:result" />
</pipeline>
<pipeline>
<bean ref="processor2" method="handle" />
<to uri="mock:result" />
</pipeline>
</multicast>
</route>
I verified that nothing was enqueued to the ActiveMQ, because the "handle" method of my beans "processor1" and "processor2" was not executed.
How to define a Camel Route with an HTTP for the "from" endpoint?
Thanks.