Do you have an entry for myUser in conf/jbossmq-state.xml? This is where you configure the user/password for a JMS user.
It isn't integrated with the JAAS security in any way AFAIK.
Thanks for your reply.
I already put the user and role in conf/jbossmq-state.xml. However, it seems that the queue always get the "guest" role irrespectively the username and password I send to the queue.
Do you have any idea why?