1 /* 2 * $Id: UMOTransactionFactory.java 3798 2006-11-04 04:07:14Z aperepel $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com 5 * 6 * The software in this package is published under the terms of the MuleSource MPL 7 * license, a copy of which has been included with this distribution in the 8 * LICENSE.txt file. 9 */ 10 11 package org.mule.umo; 12 13 /** 14 * <p> 15 * <code>UMOTransactionFactory</code> creates a transaction. 16 * 17 * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a> 18 * @version $Revision: 3798 $ 19 */ 20 public interface UMOTransactionFactory 21 { 22 /** 23 * Create and begins a new transaction 24 * 25 * @return a new Transaction 26 * @throws TransactionException if the transaction cannot be created or begun 27 */ 28 UMOTransaction beginTransaction() throws TransactionException; 29 30 /** 31 * Determines whether this transaction factory creates transactions that are 32 * really transacted or if they are being used to simulate batch actions, such as 33 * using Jms Client Acknowledge. 34 * 35 * @return 36 */ 37 boolean isTransacted(); 38 } 39