...
SJMS Component
The Simple JMS SJMS Component is a drop in replacement for the current Spring container based Camel-JMS component. It is currently being hosted at github while under development. It can be retrieved and built using the following steps:
- git clone https://github.com/sully6768/camel-sandbox
- cd camel-sandbox/components/camel-sjms
- mvn clean install
JMS client for Camel based purely on the JMS API. It will be released as part of Camel 2.11 with the following functionality:
- Queue and Topic Support (Durable & Non-Durable)
- InOnly & InOut Support
- Plugable Connection Resource Management
- Session, Consumer, & Producer Pooling & Caching Management
- Asynchronous Producer and Consumer Processing
- Internal JMS Transaction Support
Info | ||
---|---|---|
| ||
S stands for Simple and Standard and Springless. Also camel-jms was already taken. |
Maven users will need to add the following dependency to their After a successful build, add the following dependency to the pom.xml
for this component:
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-sjms</artifactId> <version>x.x.x</version> <!-- currently supports trunk only use the same version as your Camel core version --> </dependency> |
URI format
Code Block |
---|
sjms:[queue:|topic:]destinationName[?options]
|
Where destinationName
is a JMS queue or topic name. By default, the destinationName
is interpreted as a queue name. For example, to connect to the queue, FOO.BAR
use:
Code Block |
---|
sjms:FOO.BAR
|
You can include the optional queue:
prefix, if you prefer:
Code Block |
---|
sjms:queue:FOO.BAR
|
To connect to a topic, you must include the topic:
prefix. For example, to connect to the topic, Stocks.Prices
, use:
Code Block |
---|
sjms:topic:Stocks.Prices
|
You append query options to the URI using the following format, ?option=value&option=value&...
Notes
Transactions
Anchor | ||||
---|---|---|---|---|
|
There is currently no support the Camel Transaction Processor nor does it support the Camel Transaction API.