Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The JCA Flow is very similar to the JMS Flow, in that it allow to cluster ServiceMix containers together.
The main difference is that it uses JCA to provide support for XA transactions when sending and receiving
JBI exchanges. You can find more informations on transactions here.

Configuring flows

Flows are configured on the JBI container by usually using the flowNames attribute on the main container element.

Code Block
langxml

  <sm:container flowNames="seda">
    ...
  </sm:container>

JMS and JCA flows should be configured with an ActiveMQ url to the broker.

Code Block
langxml

  <sm:container flowNames="jms?jmsURL=tcp://localhost:61616/">
    ...
  </sm:container>

You can defined several flows by using a comma separated list.

Code Block
langxml

  <sm:container flowNames="seda,jms?jmsURL=tcp://localhost:61616/">
    ...
  </sm:container>

For more complex configurations, you can define the flow explicitely.

Code Block
langxml

  <sm:container>
    <sm:flows>
      <sm:sedaFlow />
      <sm:jcaFlow bootstrapContext="#bootstrapContext"
                  connectionManager="#connectionManager"
                  jmsURL="vm://localhost" />
    </sm:flows>
  </sm:container>