This is an extract from the QuickStart guide of JBoss(i dont remember the url from where i downloaded this, from the jboss sites):
Configuring JBoss JMS Objects:
All JBoss JMS object such as the ConnectionFactorys, Topics and Queues are configured via a JMX MBean10. In addition to the
standard JMS objects, there are also JMX MBean that let you configure the JBossMQ kernel. The core, kernel level, MBeans are
configured in the JBossMQ-service.xml file. Unless you are an advanced user, you should not have to edit this file. If you
undeploy the JBossMQ-service.xml file, you in effect shutdown JBossMQ.
The deployed JBossMQ-destinations-service.xml file exists for you to define the destinations that your applications need. Most users
will have to edit this file to create new Queues or Topics. An example of a destination definition in the JBossMQ-destinationsservice.
xml is shown in Listing 11-3, the definition for a Queue Named "testQueue" and in Listing 11-4, the definition for a Topic
Named "testTopic". As you can see from the examples, role bases security authorization can be assigned on a Destination by
destination basis.
Listing 11-3,
the definition for a Queue Named "testQueue"
<mbean code="org.jboss.mq.server.QueueManager" name="jboss.mq.destination:service=Queue,name=testQueue">
<depends optional-attributename="JBossMQService">jboss.mq:service=Server</depends>
<depends optional-attributename="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="noacc" read="false" write="false" create="false"/>
</security>
</attribute>
</mbean>
Topic config, is VERY similar to the Queue config
Listing 11-4,
the definition for a Topic Named "testTopic"
<mbean code="org.jboss.mq.server.TopicManager"name="jboss.mq.destination:service=Topic,name=testTopic">
<depends optional-attributename="JBossMQService">jboss.mq:service=Server</depends>
<depends optional-attributename="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="durpublisher" read="true" write="true" create="true"/>
</security>
</attribute>
</mbean>
[ March 21, 2006: Message edited by: jaikiran pai ]