0 Replies Latest reply on Jun 22, 2012 10:04 AM by Keith Babo

    Tooling of JMS Gateway

    Keith Babo Master

      Cant' 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:

      https://github.com/jboss-switchyard/quickstarts/blob/master/camel-jms-binding/src/main/resources/META-INF/switchyard.xml

       

      Here's the schema:

      https://github.com/jboss-switchyard/components/blob/master/camel/camel-core/src/main/resources/org/switchyard/component/camel/config/model/v1/camel-v1.xsd#L249

       

      Here's the Camel JMS doc page:

      http://camel.apache.org/jms.html