Search in sources :

Example 1 with MQTransactionRolledBackRuntimeException

use of com.sun.messaging.jms.MQTransactionRolledBackRuntimeException in project openmq by eclipse-ee4j.

the class JMSContextImpl method commit.

@Override
public void commit() {
    checkNotClosed();
    disallowSetClientID();
    try {
        session.commit();
    } catch (TransactionRolledBackException e) {
        throw new MQTransactionRolledBackRuntimeException(e);
    } catch (TransactionInProgressException e) {
        throw new MQTransactionInProgressRuntimeException(e);
    } catch (IllegalStateException e) {
        throw new MQIllegalStateRuntimeException(e);
    } catch (JMSException e) {
        throw new MQRuntimeException(e);
    }
}
Also used : IllegalStateException(jakarta.jms.IllegalStateException) MQTransactionInProgressRuntimeException(com.sun.messaging.jms.MQTransactionInProgressRuntimeException) TransactionRolledBackException(jakarta.jms.TransactionRolledBackException) TransactionInProgressException(jakarta.jms.TransactionInProgressException) JMSException(jakarta.jms.JMSException) MQIllegalStateRuntimeException(com.sun.messaging.jms.MQIllegalStateRuntimeException) MQTransactionRolledBackRuntimeException(com.sun.messaging.jms.MQTransactionRolledBackRuntimeException) MQRuntimeException(com.sun.messaging.jms.MQRuntimeException)

Aggregations

MQIllegalStateRuntimeException (com.sun.messaging.jms.MQIllegalStateRuntimeException)1 MQRuntimeException (com.sun.messaging.jms.MQRuntimeException)1 MQTransactionInProgressRuntimeException (com.sun.messaging.jms.MQTransactionInProgressRuntimeException)1 MQTransactionRolledBackRuntimeException (com.sun.messaging.jms.MQTransactionRolledBackRuntimeException)1 IllegalStateException (jakarta.jms.IllegalStateException)1 JMSException (jakarta.jms.JMSException)1 TransactionInProgressException (jakarta.jms.TransactionInProgressException)1 TransactionRolledBackException (jakarta.jms.TransactionRolledBackException)1