Re: How to register consumer with the same name for the different topic
"Hemant Gaur" <[email protected]> 13 Dec 2006 04:43:31 -0000
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Looking into OpenJMS code it seems that this is not supported. The setClinetID call I can see in the JMeter ConsumerSampler but I this is not supported in OpenJMS Release version. So the consumer name(classs Name) is taken which conflicts. 1.) connection.setClientID(idGenerator.generateId()); The set ClientID is not supported in the openJMS. 2.) consumer = ((TopicSession)session).createDurableSubscriber(topic, getClass().getName()); I think I need to do some changes in the JMEter to get this running. Will keep you updated once I get this working. Regards, Hemant Gaur On Tue, 12 Dec 2006 Tim Anderson wrote : >Hemant Gaur wrote: >> >>Hi, >>For the JMeter tests on the OpenJMS release version , I tried to put the configuration for 5 topics, 5 Publishers , 5 subscribers. >> >>There was the error in the jmeter log as the OpenJMS did not allowed creating the consumer for the same name. >> >>2006/12/12 15:49:32 ERROR - org.activemq.sampler.Consumer: Error running consumer javax.jms.JMSException: Failed to unsubscribe subscriber org.activemq.sampler.Consumer since is still active >>at org.exolab.jms.server.JmsServerSession.unsubscribe(JmsServerSession.java:881) >>at org.exolab.jms.server.JmsServerSession.createSubscriber(JmsServerSession.java:758) >>at org.exolab.jms.server.mipc.IpcJmsSessionConnection.createSubscriber(IpcJmsSessionConnection.java:588) >>at org.exolab.jms.server.mipc.IpcJmsSessionConnection.notify(IpcJmsSessionConnection.java:165) >>at org.exolab.jms.server.mipc.IpcJmsReceiver.notify(IpcJmsReceiver.java:100) >>at org.exolab.jms.server.mipc.IpcServerChannel.run(IpcServerChannel.java:161) >> >> >>Are there anyworkarounds/configuration settings for this to be resolved. Publishers are working fine for the 5 topics. >> >In OpenJMS, subscription names must be unique.You'll need to configure JMeter to use a different subscription name >per durable subscriber. > >-Tim ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ openjms-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openjms-user