return this.listMessages(NON_DURABLE, selector);
}
private List listMessages(int type, String selector) throws Exception
{
Selector sel = null;
if (selector != null && "".equals(selector.trim()))
{
selector = null;
}
if (selector != null)
{
sel = new Selector(selector);
}
List msgs = new ArrayList();
List allMsgs = queue.browse(sel);