Available as of Camel 2.12
The stomp: component is used for communicating with Stomp compliant message brokers, like Apache ActiveMQ or ActiveMQ Apollo
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-stomp</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
|
stomp:queue:destination[?options] |
Where destination is the name of the queue.
|
You can append query options to the URI in the following format, ?option=value&option=value&...
Sending messages:
from("direct:foo").to("stomp:queue:test");
|
Consuming messages:
from("stomp:queue:test").transform(body().convertToString()).to("mock:result")
|