You must validate if the authenticated users have sufficient permissions to access the messaging resources (that is queues or topic) to perform actions like sending, receiving, or browsing messages.
<featureManager>
<feature>wasJmsServer-1.0</feature>
<feature>wasJmsClient-1.1</feature>
<feature>wasJmsSecurity-1.0</feature>
</featureManager>
<messagingEngine>
<queue id="QUEUE1"/>
<topicSpace id="TopicSpace1"/>
<messagingSecurity>
<role name="developer">
<queuePermission queueRef="QUEUE1">
<action>SEND</action>
<action>BROWSE</action>
</queuePermission>
<topicPermission topicSpaceRef="TopicSpace1" topicName="Sports/Cricket">
<action>ALL</action>
</topicPermission>
<user name="user1" />
<user name="user3" />
<group name="Developers" />
</role>
<role name="tester">
<queuePermission queueRef="QUEUE1">
<action>BROWSE</action>
</queuePermission>
<topicPermission topicSpaceRef="TopicSpace1">
<action>RECEIVE</action>
</topicPermission>
<user name="user5" />
<user name="user6" />
<group name="Testers" />
</role>
</messagingSecurity>
</messagingEngine>
In the previous configuration,
users user1 and user3 and the
group Developers can perform the SEND and BROWSE actions
on QUEUE1. They can also perform ALL actions
on the topics Sports/Cricket in TopicSpace1.
Similarly, users user5 and user6 and
the group Testers can perform the BROWSE action
on queue QUEUE1 and the RECEIVE action
on all the topics in TopicSpace1. [createConnection(userName, password)]