To receive messages from an MDB we need to configure a message endpoint via a new Activation Specification.
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 Activation specifications". The new panel shows you the list of existing Activation Specifications of this Resource Adapter. The list is empty. Click on "New":
Enter a name for the new activation specification. We use "swiftmqinbound1". Use the same name for JNDI:
Click "Ok". This brings you back to the list of existing Activation Specifications of this Resource Adapter. You see now the new "swiftmqinbound1" Activativation Specification:
There are 2 ways to configure this Activation Spec. The first way is to configure the default values of the Activation Specification. For example, you could create multiple Activation Specifications, each with different configurations (destinations etc). In that case you don't need to add activation spec properties to the ejb-jar.xml but just bind the MDB to a particular Activation Specification. A click on "swiftmqinbound1" would bring you to the configuration panel and from there to the custom properties of the Activation Specification. The second way we use for our examples is to have a single Activation Specification which will be configured from activation spec properties out of the ejb-jar.xml from the MDBs we use in our examples. So we can leave the Activation Spec with default properties and save the configuration: