File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
EJB and other Java EE Technologies
List Durable Subscriptions from JMS Topic
Joined: Feb 01, 2007
Jun 24, 2014 03:08:47
We have a requirement to list all the durable subscriptions from the JMS topic and written below code to get the Topic name
Topic topic = null;
Properties p = new Properties( );
Context ctx = new
// Locate the Topic Connection Factory via JNDI
topic = (Topic) ctx.lookup("/topic/AB_MessageStore");
System.out.println("Topic Name:" + topic.getTopicName());
System.out.println("AB_MessageStore Topic not found");
Please let me know if anybody have any idea to list the subscriptions in that topic
Joined: Mar 17, 2012
Jun 24, 2014 06:16:03
First, you can probably view them on the console as explained here
From code you might need to use JMX to query the JMSServerRuntimeMBean and JMSDurableSubscriberRuntimeMBean which are described here
I agree. Here's the link:
subject: List Durable Subscriptions from JMS Topic
does JBoss ship with a predefined TopicConnectionFactory?
Question on MessageDriven Beans
JMS and client application
Failed to initialize the ORB using websphere.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015