4 Replies Latest reply on Aug 31, 2003 1:29 PM by Alexander Berry

    Loggedonclientids

    Alexander Berry Newbie

      when running a jms client that uses places message and reads them from a durable queue . I get the folloiwing message.

      Any ideas..







      javax.jms.InvalidClientIDException: This loggedOnClientIds is password protected !
      at org.jboss.mq.sm.file.DynamicStateManager.checkLoggedOnClientId(DynamicStateManager.java:344)
      at org.jboss.mq.sm.AbstractStateManager.addLoggedOnClientId(AbstractStateManager.java:241)
      at org.jboss.mq.server.JMSDestinationManager.checkID(JMSDestinationManager.java:369)
      at org.jboss.mq.server.JMSServerInterceptorSupport.checkID(JMSServerInterceptorSupport.java:123)
      at org.jboss.mq.server.TracingInterceptor.checkID(TracingInterceptor.java:202)
      at org.jboss.mq.server.JMSServerInvoker.checkID(JMSServerInvoker.java:125)
      at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:257)
      at java.lang.Thread.run(Thread.java:536)

        • 1. Re: Loggedonclientids
          Adrian Brock Master

          You are trying to use a client-id that has a user/password
          in jbossmq-state.xml

          Regards,
          Adrian

          • 2. Re: Loggedonclientids
            Alexander Berry Newbie

            That is the question. There is no password on this topic.

            Below is a snippet of the client code:

            public DurableSubscriber() {
            TopicConnectionFactory topicConnectionFactory = null;

            try {

            topicConnectionFactory =
            SampleUtilities.getTopicConnectionFactory();
            topicConnection =
            topicConnectionFactory.createTopicConnection();
            topicConnection.setClientID("DurableSubscriberExample");

            topicSession = topicConnection.createTopicSession(false,
            Session.AUTO_ACKNOWLEDGE);
            topic = SampleUtilities.getTopic(topicName, topicSession);
            } catch (Exception e) {
            System.out.println("Connection problem: " + e.toString());
            if (topicConnection != null) {
            try {
            topicConnection.close();
            } catch (JMSException ee) {}
            }
            System.exit(1);
            }
            }

            Below is the jbossmq-state.xml

            <?xml version="1.0" encoding="UTF-8"?>



            john
            needle
            DurableSubscriberExample


            guest
            guest


            nobody
            nobody


            dynsub
            dynsub




            guest
            john


            john


            john
            dynsub


            john
            dynsub


            nobody




            DurableSubscriberExample
            AnotherExample
            testTopic





            above there is no password on DurableSubscriberExample.


            Thanks,

            Alex.

            • 3. Re: Loggedonclientids
              Adrian Brock Master


              john
              needle
              DurableSubscriberExample


              I repeat, the client id is password protected.

              Use createTopicConnect("john", "needle");

              Regards,
              Adrian

              • 4. Re: Loggedonclientids
                Alexander Berry Newbie

                Thanks very much, this does work.

                alex.