...
Stomp
...
Component
...
Available
...
as
...
of
...
Camel
...
2.12
...
The
...
stomp:
...
component
...
is
...
used
...
for
...
communicating
...
with
...
...
compliant
...
message
...
brokers,
...
like
...
...
...
or
...
Maven users will need to add the following dependency to their pom.xml
for this component:
Code Block | ||||
---|---|---|---|---|
| ||||
Apollo|http://activemq.apache.org/apollo/]
Maven users will need to add the following dependency to their {{pom.xml}} for this component:
{code:xml}
<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 |
---|
{code} h3. URI format {code} stomp:queue:destination[?options] {code} Where *destination* is the name of the queue. h3. Options |
Where destination is the name of the queue.
Options
Wiki Markup |
---|
{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 |
{div}
|
You
...
can
...
append
...
query
...
options
...
to
...
the
...
URI
...
in
...
the
...
following
...
format,
...
?option=value&option=value&...
Samples
Sending messages:
Code Block |
---|
}} h3. Samples Sending messages: {code} from("direct:foo").to("stomp:queue:test"); {code} |
Consuming
...
messages:
Code Block |
---|
} from("stomp:queue:test").transform(body().convertToString()).to("mock:result") {code} {include:Endpoint} |
Include Page | ||||
---|---|---|---|---|
|