High Quality JMS Messaging.

Create an Administered Object

Our second example MDB forwards the messages to the queue "testqueue2". In order to lookup this queue from the MDB, it must be created as an Administered Object in WebSphere's JNDI.

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 administered objects". The new panel shows you the list of existing Administered Objects of this Resource Adapter. The list is empty. Click on "New":

Enter a name for the new Administered Object. We use "testqueue2". Specify "jms/testqueue2" as the JNDI name. Select also the object class which is "com.swiftmq.jms.QueueImpl implements javax.jms.Queue":

Click "Ok". This brings you back to the list of existing Administered Objects of this Resource Adapter. You see now the new "testqueue2" Administered Object:

Click on the "testqueue2" entry to configure it:

Click on "Custom properties" and you will see that this object has a "QueueName" property to configure:

Click on "QueueName" and enter "testqueue2@router1" which is the fully qualified SwiftMQ queue name:

Click "Ok" and save the configuration: