0 Replies Latest reply on Aug 21, 2001 12:23 PM by leealex

    problem using setClientID

    leealex

      hi,
      i have this JMS client application which uses the setClientID as follow:

      connect = factory.createTopicConnection (username, password);

      connect.setClientID(username);

      and i get the following exception:

      java.rmi.RemoteException: ; nested exception is:
      javax.jms.JMSSecurityException: The login id has an assigned client id. That client id is already connected to the server!
      javax.jms.JMSSecurityException: The login id has an assigned client id. That client id is already connected to the server!

      javax.jms.JMSException: createTopicConnection has failed !
      java.lang.Throwable(java.lang.String)
      java.lang.Exception(java.lang.String)
      javax.jms.JMSException(java.lang.String)
      void org.jbossmq.SpyTopicConnectionFactory.failureHandler(java.lang.Exception, java.lang.String)
      javax.jms.TopicConnection org.jbossmq.SpyTopicConnectionFactory.createTopicConnection(java.lang.String, java.lang.String)
      chap4.b2b.Retailer(java.lang.String, java.lang.String, java.lang.String)
      void chap4.b2b.Retailer.main(java.lang.String [])

      Even after i comment out the setClientID, i'm still getting the above exception.

      However, after i restart JBoss and rerun the client application which has the setClientID commented, the above exception goes away.

      What is wrong here ?

      alex