Hello, i'm tryng to control the access method to my queue, but i'm having some problems.
I have the folling piece of code in jbossmq-destinations-service.xml: <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=Multibanco"> <depends optional-attribute- name="DestinationManager">jboss.mq:service=DestinationManager</ depends> <!-- Security --> <depends optional-attribute- name="SecurityManager">jboss.mq:service=SecurityManager</ depends> <attribute name="SecurityConf"> <security> <role name="publisher" read="true" write="true" create="false"/> </security> </attribute> </mbean> and in the jbossmq-state.xml i have: <User> <Name>john</Name> <Password>needle</Password> <Id>DurableSubscriberExample</Id> </User> <Role name="publisher"> <UserName>john</UserName> <UserName>dynsub</UserName> </Role> Now the problem is that when i try to deploy my message driven bean in jboss 3.0.4 with this piece of code: QueueConnectionFactory qcf = (QueueConnectionFactory) tmp; conn = qcf.createQueueConnection("john", "needle"); i get a error in the jboss like this : javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: Multibanco What am i doing wrong ? Thanks a lot .david ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user