You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The JCA Java Connector Architecture support provides the most efficient way of thread pooling, resource pooling, transaction handling and consumption on JMS and other Resource Adapters.

ServiceMix provides JCA versions of its components for easy deployment in our JCA Container.

JMS using JCA

The most efficient way of consuming JMS is through JCA. This lets the JCA container handle the pooling of the session and connections, providing a way to efficiently process messages in parallel, as well as dealing with transactions and exception handling.

The steps to use JMS over JCA with ServiceMix are as follows.

Configure the JCA Container

Just add the following to your Spring configuration file

Error formatting macro: snippet: java.lang.NullPointerException

Which will create the JCA container. Notice that there is a work manager you can configure to set the thread pooling limits. Also you can associate whichever JCA Resource Adapter you wish, such as to use another JMS provider.

Configure the JMS over JCA component.

We have a JMSOverJCAComponent which works nicely with our JCA container to provide a JBI component for consuming inbound JMS messages using JCA for all the session, connection and thread pooling as well as handling parallel processing of inbound messages and transaction handling.

Error formatting macro: snippet: java.lang.NullPointerException

You will notice that its not very different from the regular JMS component; the main difference is the use of the J2EE activation spec object to register with the JCA container.

  • No labels