List of usage examples for javax.jms Session recover
void recover() throws JMSException;
From source file:org.apache.qpid.disttest.jms.ClientJmsDelegate.java
public void rollbackOrRecoverIfNecessary(String sessionName) { try {// www . j av a 2s . c o m final Session session = _testSessions.get(sessionName); synchronized (session) { if (session.getTransacted()) { session.rollback(); } else if (session.getAcknowledgeMode() == Session.CLIENT_ACKNOWLEDGE) { session.recover(); } } } catch (final JMSException jmse) { throw new DistributedTestException("Unable to rollback or recover on session: " + sessionName, jmse); } }