Tooling of JMS Gateway
kcbabo Jun 22, 2012 10:04 AMCant' believe I forgot this ... oh well. Here's the spec:
JMS works for both service bindings and reference bindings.
Service binding options :
<choice minOccurs="1"> <element name="queue" type="string"/> <element name="topic" type="string"/> </choice> <element name="connectionFactory" type="string" /> <element name="concurrentConsumers" type="int" minOccurs="0" maxOccurs="1"/> <element name="maxConcurrentConsumers" type="int" minOccurs="0" maxOccurs="1"/> <element name="replyTo" type="string" minOccurs="0" maxOccurs="1"/> <element name="transacted" type="boolean" minOccurs="0" maxOccurs="1"/> <element name="transactionManager" type="string" minOccurs="0" maxOccurs="1"/>
Reference binding options:
<choice minOccurs="1"> <element name="queue" type="string"/> <element name="topic" type="string"/> </choice> <element name="connectionFactory" type="string" /> <element name="concurrentConsumers" type="int" minOccurs="0" maxOccurs="1"/> <element name="maxConcurrentConsumers" type="int" minOccurs="0" maxOccurs="1"/> <element name="replyTo" type="string" minOccurs="0" maxOccurs="1"/> <element name="requestTimeout" type="int" minOccurs="0" maxOccurs="1"/> <element name="transacted" type="boolean" minOccurs="0" maxOccurs="1"/> <element name="transactionManager" type="string" minOccurs="0" maxOccurs="1"/>
Notes:
- The choice for queue/topic can be represented as a drop-down selection which defaults to queue. Whether queue or topic is selected, a name is still required. So this is really two fields.
- connectionFactory should default to "#ConnectionFactory"
- concurrentConsumers and maxConcurrentConsumers can default to 1
Here's an example config:
Here's the schema:
Here's the Camel JMS doc page: