JBoss Community Archive (Read Only)

SwitchYard 1.0


The JMS binding in SwitchYard provides support for asynchronous communication with messaging providers. It supports both sides - service and reference.  The JMS binding is built on top of camel-jms and supports most of options for this endpoint. Please reffer camel documentation for detailed description of them.

Known Limitation

https://issues.jboss.org/browse/SWITCHYARD-1285 - Declarative transaction management by the Transaction Policy doesn't work with camel-jms properly. We are investigating how can we solve it, but you may want to use JCA gateway instead for now.

Generic options

Following options can be apile to <binding.jms> definition:

  • queue or topic : destination name to consume from/produce to

  • connectionFactory : an instance of connection factory to use

  • username

  • password

  • clientId

  • durableSubscriptionName

  • concurrentConsumers

  • maxConcurrentConsumers

  • disableReplyTo

  • preserveMessageQos

  • deliveryPersistent

  • priority

  • explicitQosEnabled

  • replyTo

  • replyToType

  • requestTimeout

  • selector

  • timeToLive

  • transacted

  • transactionManager

Binding Services with JMS

Here's an example of what a jms service binding looks like:

<sca:composite name="camel-binding" targetNamespace="urn:switchyard-quickstart:camel-binding:0.1.0">
    <sca:service name="GreetingService" promote="GreetingService">
            <camel:selector>RECEIVER='ESB' AND SENDER='ERP'<camel:selector>

Binding References with JMS

<sca:composite name="camel-binding" targetNamespace="urn:switchyard-quickstart:camel-binding:0.1.0">
    <sca:reference name="GreetingService" promote="camel-binding/GreetingService" multiplicity="1..1">
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:54:42 UTC, last content change 2013-03-26 01:09:21 UTC.