Lou DeGenaro created UIMA-3828:
----------------------------------
Summary: DUCC job driver (JD) should auto-retry lost work items -
improvement
Key: UIMA-3828
URL: https://issues.apache.org/jira/browse/UIMA-3828
Project: UIMA
Issue Type: Improvement
Components: DUCC
Reporter: Lou DeGenaro
Assignee: Lou DeGenaro
Priority: Minor
Fix For: future-DUCC
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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)