From: Bela B. <be...@us...> - 2003-08-26 21:37:42
|
User: belaban Date: 03/08/26 14:37:39 Added: src/main/org/jboss/cache JBossTransactionManagerLookup.java Log: Revision Changes Path 1.1 jboss-cache/src/main/org/jboss/cache/JBossTransactionManagerLookup.java Index: JBossTransactionManagerLookup.java =================================================================== package org.jboss.cache; import javax.naming.InitialContext; import javax.transaction.TransactionManager; /** * Default implementation. Uses JNDI to lookup TransactionManager. * @author Bela Ban, Aug 26 2003 * @version $Id: JBossTransactionManagerLookup.java,v 1.1 2003/08/26 21:37:39 belaban Exp $ */ public class JBossTransactionManagerLookup implements TransactionManagerLookup { public TransactionManager getTransactionManager() throws Exception { return (TransactionManager)new InitialContext().lookup("java:/TransactionManager"); } } |