In order to authenticate against a queue i have the following in the jboss.xml.
<jboss>
<enterprise-beans>
<message-driven>
<ejb-name>AFMessageProcessorEJB</ejb-name>
<destination-jndi-name>queue/AssetFusion</destination-jndi-name>
<mdb-user>vijay</mdb-user>
<mdb-passwd>vijaygrk</mdb-passwd>
</message-driven>
</enterprise-beans>
</jboss>
When i deploy the MDB i get the following error.
javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: AssetFusion