KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > providers > vm > VMTransactionFactory


1 /*
2  * $Id: VMTransactionFactory.java 3167 2006-09-22 15:47:04Z holger $
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.providers.vm;
12
13 import org.mule.umo.TransactionException;
14 import org.mule.umo.UMOTransaction;
15 import org.mule.umo.UMOTransactionFactory;
16
17 /**
18  * @author <a HREF="mailto:gnt@codehaus.org">Guillaume Nodet</a>
19  * @version $Revision: 3167 $
20  */

21 public class VMTransactionFactory implements UMOTransactionFactory
22 {
23
24     public UMOTransaction beginTransaction() throws TransactionException
25     {
26         VMTransaction tx = new VMTransaction();
27         tx.begin();
28         return tx;
29     }
30
31     public boolean isTransacted()
32     {
33         return true;
34     }
35
36 }
37
Popular Tags