Package javax.jms

Examples of javax.jms.TransactionInProgressException


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

      else if (method.getName().equals("hashCode")) {
        // Use hashCode of Connection proxy.
        return new Integer(System.identityHashCode(proxy));
      }
      else if (method.getName().equals("commit")) {
        throw new TransactionInProgressException("Commit call not allowed within a managed transaction");
      }
      else if (method.getName().equals("rollback")) {
        throw new TransactionInProgressException("Rollback call not allowed within a managed transaction");
      }
      else if (method.getName().equals("close")) {
        // Handle close method: not to be closed within a transaction.
        return null;
      }
View Full Code Here

      else if (method.getName().equals("hashCode")) {
        // Use hashCode of Connection proxy.
        return new Integer(hashCode());
      }
      else if (method.getName().equals("commit")) {
        throw new TransactionInProgressException("Commit call not allowed within a managed transaction");
      }
      else if (method.getName().equals("rollback")) {
        throw new TransactionInProgressException("Rollback call not allowed within a managed transaction");
      }
      else if (method.getName().equals("close")) {
        // Handle close method: not to be closed within a transaction.
        return null;
      }
View Full Code Here

     * @throws javax.jms.JMSException on internal error
     */
    public void begin() throws JMSException {

        if (isInXATransaction()) {
            throw new TransactionInProgressException("Cannot start local transaction.  XA transaction is already in progress.");
        }
       
        if (transactionId == null) {
            synchronizations = null;
            beforeEndIndex = 0;
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 ");
        }
       
        try {
            beforeEnd();
        } catch (TransactionRolledBackException canOcurrOnFailover) {
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 ");
        }
       
        try {
            beforeEnd();
        } catch (JMSException e) {
View Full Code Here

     * @throws javax.jms.JMSException on internal error
     */
    public void begin() throws JMSException {

        if (isInXATransaction()) {
            throw new TransactionInProgressException("Cannot start local transaction.  XA transaction is already in progress.");
        }
       
        if (transactionId == null) {
            synchronizations = 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 ");
        }
       
        beforeEnd();
        if (transactionId != null) {
            if (LOG.isDebugEnabled()) {
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.