[jboss-user] [JBoss Messaging] - Re: Remove old durable messages
clebert.suconic@jboss.com
do-not-reply at jboss.com
Tue Jun 17 15:51:40 EDT 2008
anonymous wrote : TopicService service = new TopicService();
| List list = service.listDurableMessages("sub-id");
|
You should use the TopicService through the JMX-Console (http://wiki.jboss.org/auth/wiki/JMXConsole)
Or you should look up the MBean through JNDI if you want to use the API.
There is this MBean FAQ which I found it pretty useful for what you need:
http://wiki.jboss.org/auth/wiki/FAQJBossJMX
In special:
http://wiki.jboss.org/wiki/HowCanAnEJBCallAnMBean
You should find information on how a Java client can call an MBean also.
Instantiating TopicService will certainly cause a NPE as you won't have all the bootstrap introduced by the Server start and other dependencies.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158813#4158813
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158813
More information about the jboss-user
mailing list