KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > JBossTransactionManagerLookup


1 package org.jboss.cache;
2
3 import javax.naming.InitialContext JavaDoc;
4 import javax.transaction.TransactionManager JavaDoc;
5
6 /**
7  * Default implementation. Uses JNDI to lookup TransactionManager.
8  *
9  * @author Bela Ban, Aug 26 2003
10  * @version $Id: JBossTransactionManagerLookup.java,v 1.1.1.1 2005/03/31 10:15:00 belaban Exp $
11  */

12 public class JBossTransactionManagerLookup implements TransactionManagerLookup {
13
14    public JBossTransactionManagerLookup() {
15    }
16
17    public TransactionManager JavaDoc getTransactionManager() throws Exception JavaDoc {
18       return (TransactionManager JavaDoc)new InitialContext JavaDoc().lookup("java:/TransactionManager");
19    }
20
21 }
22
Popular Tags