Package javax.jms

Examples of javax.jms.TransactionInProgressException


    public boolean getTransacted() throws JMSException {
        return getTransactionContext().isInXATransaction();
    }

    public void rollback() throws JMSException {
        throw new TransactionInProgressException("Cannot rollback() inside an XASession");
    }
View Full Code Here


    public void rollback() throws JMSException {
        throw new TransactionInProgressException("Cannot rollback() inside an XASession");
    }

    public void commit() throws JMSException {
        throw new TransactionInProgressException("Cannot commit() inside an XASession");
    }
View Full Code Here

    public boolean getTransacted() throws JMSException {
        return true;
    }

    public void rollback() throws JMSException {
        throw new TransactionInProgressException("Cannot rollback() inside an XASession");
    }
View Full Code Here

    public void rollback() throws JMSException {
        throw new TransactionInProgressException("Cannot rollback() inside an XASession");
    }

    public void commit() throws JMSException {
        throw new TransactionInProgressException("Cannot commit() inside an XASession");
    }
View Full Code Here

     * Start a local transaction.
     */
    public void begin() throws JMSException {

        if (isInXATransaction())
            throw new TransactionInProgressException(
                    "Cannot start local transaction.  XA transaction is already in progress.");

        if (transactionId==null) {
            synchornizations = null;
            this.transactionId = new LocalTransactionId(connectionId, localTransactionIdGenerator.getNextSequenceId());
View Full Code Here

     * @throws javax.jms.IllegalStateException
     *             if the method is not called by a transacted session.
     */
    public void rollback() throws JMSException {
        if (isInXATransaction())
            throw new TransactionInProgressException("Cannot rollback() if an XA transaction is already in progress ");

        if (transactionId!=null) {
            TransactionInfo info = new TransactionInfo(getConnectionId(), transactionId, TransactionInfo.ROLLBACK);
            this.transactionId = null;
            this.connection.asyncSendPacket(info);
View Full Code Here

     * @throws javax.jms.IllegalStateException
     *             if the method is not called by a transacted session.
     */
    public void commit() throws JMSException {
        if (isInXATransaction())
            throw new TransactionInProgressException("Cannot commit() if an XA transaction is already in progress ");

        beforeEnd();
       
        // Only send commit if the transaction was started.
        if (transactionId!=null) {
View Full Code Here

     * be called for an <code>XASession</code> object.
     *
     * @throws TransactionInProgressException if invoked
     */
    public void commit() throws JMSException {
        throw new TransactionInProgressException(
                "Cannot call commit on XAQueueession");
    }
View Full Code Here

     * be called for an <code>XASession</code> object.
     *
     * @throws TransactionInProgressException if invoked
     */
    public void rollback() throws JMSException {
        throw new TransactionInProgressException(
                "Cannot call rollback on XAQueueSession");
    }
View Full Code Here

     * be called for an <code>XASession</code> object.
     *
     * @throws TransactionInProgressException if invoked
     */
    public void commit() throws JMSException {
        throw new TransactionInProgressException(
                "Cannot call commit on XATopicession");
    }
View Full Code Here

TOP

Related Classes of javax.jms.TransactionInProgressException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.