11.5.2.3.2. JMS Queue Administered Object Example
- Changes
- Updated April 2013.
<mbean code="org.jboss.resource.deployment.AdminObject" name="qpid.jca:name=HelloQueue"> <attribute name="JNDIName">HelloQueue</attribute> <depends optional-attribute-name="RARName"> jboss.jca:service=RARDeployment,name='qpid-ra-<ra-version>.rar' </depends> <attribute name="Type"> org.apache.qpid.ra.admin.QpidQueue </attribute> <attribute name="Properties"> DestinationAddress=amq.direct </attribute> </mbean>The above XML defines a JMS Queue which is bound into JNDI as:
HelloQueue
This destination can be retrieved from JNDI and used for the consumption or production of messages. The
DestinationAddress
property can be customized for your environment. Refer to Qpid Java Client documentation for specific configuration options.