KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > impl > tree > DummyTransactionManagerLookup


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.core.impl.tree;
10
11 import org.jboss.cache.TransactionManagerLookup;
12 import org.jboss.cache.transaction.DummyTransactionManager;
13
14 import javax.transaction.TransactionManager JavaDoc;
15
16 /**
17  * Same as JBoss cache DummyTransactionManagerLookup but does not use singleton method in order to
18  * avoid the binding into JNDI that fails into JBoss AS.
19  *
20  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
21  * @version $Revision: 1.1 $
22  */

23 public class DummyTransactionManagerLookup implements TransactionManagerLookup
24 {
25
26    private TransactionManager tm = new DummyTransactionManager();
27
28    public TransactionManager getTransactionManager() throws Exception JavaDoc
29    {
30       return tm;
31    }
32 }
33
Popular Tags