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

    How can I add users for DurableSubscriber

    Nitin Newbie

      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.