Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Once that all JPs have stopped, perhaps JD should insure queue is purged.
// The ActiveMQ JMX domain
> String amqDomain = "org.apache.activemq";
>
> // The parameters for an ObjectName
> Hashtable<String, String> params = new Hashtable<String, String>();
> params.put("Type", "Queue");
> params.put("BrokerName", brokerName);
> params.put("Destination", queueName);
>
> // Create an ObjectName
> ObjectName queueObjectName = ObjectName.getInstance(amqDomain, params);
>
> // Create a proxy to the QueueViewMBean
> QueueViewMBean queueProxy = (QueueViewMBean)
> broker.getManagementContext().newProxyInstance(queueObjectName,
> QueueViewMBean.class, true);
>
> // Purge the queue
> queueProxy.purge();
>
See Jira 3577.