*/
protected void init() throws JMSException {
JmsDestination queue = getDestination();
List handles;
DatabaseService service = null;
try {
service = DatabaseService.getInstance();
Connection connection = service.getConnection();
service.getAdapter().removeExpiredMessageHandles(connection,
queue.getName());
handles = service.getAdapter().getMessageHandles(connection, queue,
queue.getName());
} catch (PersistenceException exception) {
_log.error(exception, exception);
try {
if (service != null) {
service.rollback();
}
} catch (PersistenceException error) {
_log.error(error, error);
}
throw new JMSException(exception.getMessage());