public int truncate(DestinationConfig destination) throws JMSException
{
try
{
QueueAdmin queueAdmin = (QueueAdmin) getHermes().getSession().createQueue(destination.getName()) ;
synchronized (this)
{
int rval = getDepth(destination);
brokerClient.clearClientQueueById(queueAdmin.getName());
log.debug("truncated queue=" + queueAdmin.getName() + ", size=" + rval) ;
return rval;
}
}
catch (BrokerException e)
{