message.setText("Persistent message");
sender.send(message, DeliveryMode.PERSISTENT, 4, 0);
message.setText("High Priority Persistent message");
sender.send(message, DeliveryMode.PERSISTENT, 9, 0);
QueueBrowser browser = session.createBrowser(queue);
Enumeration i = browser.getEnumeration();
getLog().debug(message.getText());
message = (TextMessage) i.nextElement();
getLog().debug(message.getText());