I believe if you use different client id's under same user pass you should be okay
Hi Thanks for the reply.
Actually what I want to do is the following:
there r two topics Topic-1, Topic-2. and now there a subscriber java class which creates a connection and start listening to a the given topic. but I want to make two connections one to each topic using the same username credentials concurrently.
Since the subscribers are durable, I want to attach different client ids to the same user as shown below:
But when I tried to run the program, the following exception occured:
JMS Context Initialization Exception :org.jboss.mq.SpyJMSException: Cannot get a
client ID; - nested throwable: (javax.jms.JMSSecurityException: The login id ha
s an assigned client id. That client id is already connected to the server!)
I am not sure on whether we can add two IDs under the tag.
I bought the JBOSS documentation provided by jboss.org. but it's like explaining concepts with helloworld program.
Any help is welcome. Thanks for the same.
There is now way you can do it like that. If you want the same user to be logged in more than once you can not connect a clientid to the user by configuration. You have to set a different clientid for each userlogin programaticallt through the JMS API, i. e after the connection is established, but before you do anything else.
As with most stuff in JBoss, look into the testsuites if you need axamples. jboss-all/testsuite/src/main/org/jboss/test/jbossmq/test/SecurityUnitTestCase.java has a lot of tests of auth and durable subs.