Example usage for javax.jms TransactionInProgressException TransactionInProgressException

List of usage examples for javax.jms TransactionInProgressException TransactionInProgressException

Introduction

In this page you can find the example usage for javax.jms TransactionInProgressException TransactionInProgressException.

Prototype

public TransactionInProgressException(String reason) 

Source Link

Document

Constructs a TransactionInProgressException with the specified reason.

Usage

From source file:org.wso2.andes.client.XASession_9_1.java

/**
 * Throws a {@link TransactionInProgressException}, since it should
 * not be called for an XASession object.
 *
 * @throws TransactionInProgressException always.
 *//*from  w w  w.j  av  a  2s  .co  m*/
public void commit() throws JMSException {
    throw new TransactionInProgressException(
            "XASession:  A direct invocation of the commit operation is prohibited!");
}

From source file:org.wso2.andes.client.XASession_9_1.java

/**
 * Throws a {@link TransactionInProgressException}, since it should
 * not be called for an XASession object.
 *
 * @throws TransactionInProgressException always.
 *///from ww w  . java 2s . c  o m
public void rollback() throws JMSException {
    throw new TransactionInProgressException(
            "XASession: A direct invocation of the rollback operation is prohibited!");
}

From source file:org.wso2.andes.client.XASession_9_1.java

/**
 * Throws a {@link TransactionInProgressException}, since it should
 * not be called for an XASession object.
 *
 * @throws TransactionInProgressException always.
 *//* ww w .j  a va  2 s. c o  m*/
public void recover() throws JMSException {
    throw new TransactionInProgressException(
            "XASession: A direct invocation of the recover operation is prohibited!");
}