...
Maven users will need to add the following dependency to their pom.xml
for this component:
Code Block |
---|
|
<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>
|
URI format
Code Block |
---|
stomp:queue:destination[?options]
|
...
Div |
---|
class | confluenceTableSmall |
---|
|
Property | Default | Description |
---|
brokerURL
| tcp://localhost:61613
| The URI of the Stomp broker to connect to | login
| | The username | passcode
| | The password | host | | Camel 2.15.3/2.16: The virtual host | sslContextParameters | null | Camel 2.17: Reference to a org.apache.camel.util.jsse.SSLContextParameters in the Registry. The brokerURL should use ssl as protocol. See Using the JSSE Configuration Utility. |
|
You can append query options to the URI in the following format, ?option=value&option=value&...
...
Sending messages:
Code Block |
---|
from("direct:foo").to("stomp:queue:test");
|
Consuming messages:
Code Block |
---|
from("stomp:queue:test").transform(body().convertToString()).to("mock:result")
|