}
BrokerViewMBean brokerMBean = (BrokerViewMBean) MBeanServerInvocationHandler.newProxyInstance(server, brokerObjectName, BrokerViewMBean.class, true);
brokerMBean.addQueue(destinationInfo.getPhysicalName());
}
proxy = (QueueViewMBean) MBeanServerInvocationHandler.newProxyInstance(server, destinationObjectName, QueueViewMBean.class, true);
proxy.purge();
} else {
throw new JMSException("Purge action on topic is not supported");
}
} catch (MalformedObjectNameException e) {
throw createJMSException("Fail to find the target object name", e);