0 Replies Latest reply on Dec 17, 2002 2:25 PM by David Araujo

    JMS  security problem

    David Araujo Newbie

      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:


      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager

      <!-- Security -->
      <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager







      and in the jbossmq-state.xml i have:


      john
      needle
      DurableSubscriberExample


      john
      dynsub



      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