LibraryLink ToToggle FramesPrintFeedback

Using FUSE Message Broker and Apache ActiveMQ Connection Factories

The recommended method for creating connections to FUSE Message Broker, or Apache ActiveMQ, is by using the Jencks AMQPool. It provides support for using a scalable pool of connections for managing overhead. You can download the needed jar from http://repo1.maven.org/maven2/org/jencks/jencks-amqpool/2.0/jencks-amqpool-2.0.jar. Once it is downloaded, you need to add it your classpath. The easiest way to do this is to place the jar into your InstallDir\lib folder.

[Note]Note

The examples included with FUSE ESB use the standard Apache ActiveMQ connection factory. This is fine for testing purposes, but is not robust enough for enterprise deployments.

The Jencks AMQPool supplies three connection factories:

To add the AMQPool configuration elements to your endpoint's configuration you need to add the following XML namespace declaration to your beans element:

The simple pooling connection factory supports pooling, but does not support transactions. It is specified using the amqpool:pool element. The attributes used to configure the simple pooled connection factory are described in Table 2.1.


Example 2.1 shows a configuration snippet for configuring the simple AMQPool connection factory.


The XA pooling connection factory supports XA transactions and late enlistment. It is specified using the amqpool:xa-pool element. The attributes used to configure the XA pooled connection factory are described in Table 2.2.


Example 2.2 shows a configuration snippet for configuring the simple AMQPool connection factory.


The JCA pooling connection factory is intended to be used inside of J2EE environments or in conjunction with the Jencks JCA environment. It is specified using the amqpool:jca-pool element. The attributes used to configure the JCA pooled connection factory are described in Table 2.3.


Example 2.3 shows a configuration snippet for configuring the simple AMQPool connection factory.