High Quality JMS Messaging.

Create a Connection Factory

Our second example MDB forwards the messages to the queue "testqueue2". To do so, it requires a JMS connection factory to create a connection to send the message.

Connect with the administration console and log in. On the left side expand the node "Resources" and click on "Resource Adapters":

On the right panel you will now see the list of installed Resource Adapters:

Click on "SwiftMQ JMS Resource Adapter". This brings you to the "Configuration" panel:

Click on "J2C connection factories". The new panel shows you the list of existing connection factories of this Resource Adapter. The list is empty. Click on "New":

Enter a name for the new connection factory. We use "CF". Specify "jms/CF" as the JNDI name. Select also the connection factory interface which is "javax.jms.ConnectionFactory":

Click "Ok". This brings you back to the list of existing connection factories of this Resource Adapter. You see now the new "CF" connection factory:

Click on the "CF" entry to configure it:

Click on "Custom properties" and you will see the properties you can configure for this connection factory:

This connection factory uses the "IVMConnectionFactory" by default and we don't use SwiftMQ authentication so we don't need to change the defaults.

Save the configuration: