8 Replies Latest reply on Oct 11, 2003 2:34 PM by arabin

    Can I use durable topic to send and receive at the same time

    arabin

      If receiver uses durable subscription to receive messages, and sender is trying to establish connection at the same time (or vice versa), I have an exception:

      Exception in thread "main" org.jboss.mq.SpyJMSException: Cannot get a client ID;
      - nested throwable: (javax.jms.JMSSecurityException: The login id has an assign
      ed client id. That client id is already connected to the server!)
      at org.jboss.mq.Connection.askForAnID(Connection.java:866)
      at org.jboss.mq.Connection.(Connection.java:242)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:49)
      at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnection
      Factory.java:97)
      at com.teamworks.client.DurableTopicClient.setupPubSub(DurableTopicClien
      t.java:57)
      at com.teamworks.client.DurableTopicClient.sendRecvAsync(DurableTopicCli
      ent.java:71)
      at com.teamworks.client.DurableTopicClient.main(DurableTopicClient.java:
      97)
      Caused by: javax.jms.JMSSecurityException: The login id has an assigned client i
      d. That client id is already connected to the server!
      at org.jboss.mq.sm.AbstractStateManager.checkUser(AbstractStateManager.j
      ava:213)
      at org.jboss.mq.server.JMSDestinationManager.checkUser(JMSDestinationMan
      ager.java:735)
      at org.jboss.mq.server.JMSServerInterceptorSupport.checkUser(JMSServerIn
      terceptorSupport.java:273)
      at org.jboss.mq.server.TracingInterceptor.checkUser(TracingInterceptor.j
      ava:618)
      at org.jboss.mq.server.JMSServerInvoker.checkUser(JMSServerInvoker.java:
      275)
      at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.
      java:325)
      at java.lang.Thread.run(Thread.java:536)

      Is there a way to use durable subscription so that to send messages from one client and receive them from another one?