Hi,
i'm tryng to control the access method to my queue (password), 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 ?
Do i have to configure another file (maybe auth.conf) ?
Thanks a lot
Regards
.david
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user