Package org.springframework.transaction.jta

Examples of org.springframework.transaction.jta.SimpleTransactionFactory


  public void setTransactionManager(Object transactionManager) {
    if (transactionManager instanceof TransactionFactory) {
      this.transactionFactory = (TransactionFactory) transactionManager;
    }
    else if (transactionManager instanceof TransactionManager) {
      this.transactionFactory = new SimpleTransactionFactory((TransactionManager) transactionManager);
    }
    else {
      throw new IllegalArgumentException("Transaction manager [" + transactionManager +
          "] is neither a [org.springframework.transaction.jta.TransactionFactory} nor a " +
          "[javax.transaction.TransactionManager]");
View Full Code Here


  public void setTransactionManager(Object transactionManager) {
    if (transactionManager instanceof TransactionFactory) {
      this.transactionFactory = (TransactionFactory) transactionManager;
    }
    else if (transactionManager instanceof TransactionManager) {
      this.transactionFactory = new SimpleTransactionFactory((TransactionManager) transactionManager);
    }
    else {
      throw new IllegalArgumentException("Transaction manager [" + transactionManager +
          "] is neither a [org.springframework.transaction.jta.TransactionFactory} nor a " +
          "[javax.transaction.TransactionManager]");
View Full Code Here

  public void setTransactionManager(Object transactionManager) {
    if (transactionManager instanceof TransactionFactory) {
      this.transactionFactory = (TransactionFactory) transactionManager;
    }
    else if (transactionManager instanceof TransactionManager) {
      this.transactionFactory = new SimpleTransactionFactory((TransactionManager) transactionManager);
    }
    else {
      throw new IllegalArgumentException("Transaction manager [" + transactionManager +
          "] is neither a [org.springframework.transaction.jta.TransactionFactory} nor a " +
          "[javax.transaction.TransactionManager]");
View Full Code Here

  public void setTransactionManager(Object transactionManager) {
    if (transactionManager instanceof TransactionFactory) {
      this.transactionFactory = (TransactionFactory) transactionManager;
    }
    else if (transactionManager instanceof TransactionManager) {
      this.transactionFactory = new SimpleTransactionFactory((TransactionManager) transactionManager);
    }
    else {
      throw new IllegalArgumentException("Transaction manager [" + transactionManager +
          "] is neither a [org.springframework.transaction.jta.TransactionFactory} nor a " +
          "[javax.transaction.TransactionManager]");
View Full Code Here

TOP

Related Classes of org.springframework.transaction.jta.SimpleTransactionFactory

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.