[jboss-user] [JBoss Messaging] - Re: How do I empty a JBoss queue?

ataylor do-not-reply at jboss.com
Tue Feb 26 10:05:52 EST 2008


something like
public class MyService  extends ServiceMBeanSupport
  | {
  |    public synchronized void startService() throws Exception
  |    {
  |       /**
  |        * Here you could connect to the Destination via the mbeanserver and call removeAllMessage
  |        * or alternatively just get the datasource and delete messages using JDBC
  |        */
  | 
  |    }
  | }

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

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



More information about the jboss-user mailing list