[jboss-user] [JBoss Messaging] - Re: Remove old durable messages

hzfzl9 do-not-reply at jboss.com
Tue Jun 17 15:22:54 EDT 2008


I'm appreciated your response.

This message is regarding of using TopicService class.  
I have JBoss Messaging currently running with durable subscribers are subscribing to the Durable Topic.  As you mentioned, we could use TopicMBean which is an 'interface' and TopicService that is implementing the TopicMBean.  
However, when I tested the following codes it returned a NullPointerException.
     TopicService service = new TopicService();
      List list = service.listDurableMessages("sub-id");

list is returned as Null, even though there are durable messages in the DB table and Topic.
What have I missed from using the TopicService class?  

Thanks again.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158806#4158806

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158806



More information about the jboss-user mailing list