6 Replies Latest reply on Mar 28, 2002 2:47 AM by pra

    How can I add users for DurableSubscriber

    snsnitin

      I have a JMS application which has Topic Connection and I want to authenticate that to specific users , whichever default users are already defined in jbossmq-state.xml file , I am able to access those users but , if I add new users in jbossmq-state.xml I am not able to access those.
      Say for example :
      john is default user for DurableSubscriber Message which is default defined in jbossmg-state.xml , if I add say new
      user -nitin , I get following error while executing my application.

      javax.jms.JMSSecurityException: This user does not exist
      at org.jboss.mq.server.StateManager.checkUser(StateManager.java:203)
      at org.jboss.mq.server.JMSServer.checkUser(JMSServer.java:466)
      at org.jboss.mq.il.oil.OILServerILService.run(OILServerILService.java:270)
      at java.lang.Thread.run(Thread.java:484)
      [Default] 11:35:27 03/27 [DBUG] JMSReadHandler Handling throwable: org.jboss.mq.SpyJMSException: Cannot get a client ID
      [Default] 11:35:27 03/27 [DBUG] RunnerException Initializing a new exception JMSWrite threw an exception for null. from org.jboss.mq.SpyJMSExcep
      tion: Cannot get a client ID and the message is:
      JMSWrite threw an exception for null.

        • 1. Re: How can I add users for DurableSubscriber

          How did you add you user? How does jbossmq-state.xml look?
          It is 3.0 you are using?

          //Peter

          • 2. Re: How can I add users for DurableSubscriber
            snsnitin

            jbossmq-state.xml looks like

            <?xml version="1.0"
            encoding="UTF-8"?>
            <!DOCTYPE StateManager>
            <!--
            =====================================================================
            -->
            <!-- -->
            <!-- JBossMQ StateManager Configuration -->
            <!-- -->
            <!--
            =====================================================================
            -->
            <!-- $Id: jbossmq-state.xml,v 1.3.2.1 2001/08/23 20:44:21
            starksm Exp $ -->


            guest
            guest


            john
            needle
            DurableSubscriberExample


            zuhush
            shzuhu
            zuhuzuhu


            nitin
            nitin
            DurableSubscriberNitin



            • 3. Re: How can I add users for DurableSubscriber

              Ok, so thats 2.4.4 - which I do not know that well when it commes to the state manager.

              Have you changed the correct file: i.e conf/default/ for vanailla server and conf/tomcat when run with tomcat?

              //Peter

              • 4. Re: How can I add users for DurableSubscriber
                valenta_jakub

                It should work just fine. I am using the same I have modified the file jbossmq-state.xml in JBoss/conf/default.

                The one simple thing which came to my mind is that IT IS NECESSARY to RESTART JBOSS for the changes to take effect.
                At least this is my experience.

                br,

                Jakub

                • 5. Re: How can I add users for DurableSubscriber
                  snsnitin

                  Thanks Jakub,

                  I am restarting server on every change on server side ,
                  but still not able to get changes reflected in my application , is this problem with JBoss-Tomcat combination I am using , or something else.
                  what combination u r using with JBOSS.

                  -Nitin

                  • 6. Re: How can I add users for DurableSubscriber

                    I have seen one type of error when using Tomcat-Jboss together more than one: people change the config on conf/default and wonder why nothing happens: Thats because the config files for the tomcat bundle is in conf/tomcat.

                    Is this not your problem?

                    //Peter