5 Replies Latest reply on Sep 11, 2011 3:04 AM by Kshitiz Garg

    Deleting a destination with consumers attached via MBean?

    Tom Jenkinson Master



      I am trying to delete a queue but there are consumers attached to it and as such I appear to be unable to do so, instead I get the errror message:


      javax.management.MBeanException: HornetQException[errorCode=104 message=Cannot delete queue jms.queue.BTR_BAR on binding jms.queue.BTR_BAR - it has consumers = org.hornetq.core.postoffice.impl.LocalQueueBinding]
          at com.sun.jmx.mbeanserver.MBeanIntrospector.unwrapInvocationTargetException(MBeanIntrospector.java:283)


      Is there any way I can delete this queue?


      Thanks in advance,



      PS This is using 2.1.2.Final