@Override public void recover() throws JMSException { delegate.recover(); }
/** * Fail the messages. * * @throws JMSException in case of error */ protected void doFail() throws JMSException { LOG.info("Triggering session recovery"); getSession().recover(); }
/** * Perform a rollback, handling rollback exceptions properly. * @param session the JMS Session to rollback * @param ex the thrown application exception or error * @throws javax.jms.JMSException in case of a rollback error */ protected void rollbackOnExceptionIfNecessary(Session session, Throwable ex) throws JMSException { try { if (session.getTransacted()) { if (isSessionLocallyTransacted(session)) { // Transacted session created by this container -> rollback. if (logger.isDebugEnabled()) { logger.debug("Initiating transaction rollback on application exception", ex); } JmsUtils.rollbackIfNecessary(session); } } else if (isClientAcknowledge(session)) { session.recover(); } } catch (IllegalStateException ex2) { logger.debug("Could not roll back because Session already closed", ex2); } catch (JMSException | RuntimeException | Error ex2) { logger.error("Application exception overridden by rollback error", ex); throw ex2; } }
@Override public void recover() { checkSession(); try { session.recover(); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
/** * Perform a rollback, if appropriate. * @param session the JMS Session to rollback * @throws javax.jms.JMSException in case of a rollback error */ protected void rollbackIfNecessary(Session session) throws JMSException { if (session.getTransacted()) { if (isSessionLocallyTransacted(session)) { // Transacted session created by this container -> rollback. JmsUtils.rollbackIfNecessary(session); } } else if (isClientAcknowledge(session)) { session.recover(); } }
session.recover(); throw e; } finally {
/** * Recover the JMS session. * * @throws JMSConnectorException if the JMS provider fails to recover the session. */ protected void recoverSession() throws JMSConnectorException { try { session.recover(); } catch (JMSException e) { throw new JMSConnectorException("Error while recovering the JMS session", e); } }
/** * Recover the JMS session. * * @throws JMSConnectorException if the JMS provider fails to recover the session. */ protected void recoverSession() throws JMSConnectorException { try { session.recover(); } catch (JMSException e) { throw new JMSConnectorException("Error while recovering the JMS session", e); } }
public void recover() { try { session.recover(); } catch (JMSException e) { e.printStackTrace(); } }
@Override public void recover() { checkSession(); try { session.recover(); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public void recover() { checkSession(); try { session.recover(); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public void recover() { checkSession(); try { session.recover(); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public void recover() { checkSession(); try { session.recover(); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public void recover() { try { session().recover(); } catch (final JMSException e) { throw toRuntimeException(e); } }
/** * Delegates the call to the wrapped JMS session. */ public void recover() throws JMSException { if (logger.isLoggable(BasicLevel.DEBUG)) logger.log(BasicLevel.DEBUG, this + " recover()"); checkValidity(); sess.recover(); }
public void recover() throws JMSException { if (isParticipatingInActiveGlobalTransaction()) throw new TransactionInProgressException("cannot recover a resource enlisted in a global transaction"); getSession().recover(); }
@Override public void recover() throws JMSException { if (isParticipatingInActiveGlobalTransaction()) throw new TransactionInProgressException("cannot recover a resource enlisted in a global transaction"); getSession().recover(); }
public void recover() throws JMSException { if (isParticipatingInActiveGlobalTransaction()) throw new TransactionInProgressException("cannot recover a resource enlisted in a global transaction"); getSession().recover(); }
/** * Delegates the call to the wrapped JMS session. */ public void recover() throws JMSException { if (AdapterTracing.dbgAdapter.isLoggable(BasicLevel.DEBUG)) AdapterTracing.dbgAdapter.log(BasicLevel.DEBUG, this + " recover()"); checkValidity(); sess.recover(); }
public void recover() throws JMSException { lock(); try { Session session = getSession(); if (info.isTransacted()) throw new IllegalStateException("Session is transacted"); if (trace) log.trace("Recover session " + this); session.recover(); } finally { unlock(); } }