1 Reply Latest reply on Mar 14, 2007 1:40 PM by Oleg Zhurakousky

    access TransactionManager thru JNDI outside of the container

    Jose Blas Camacho Taboada Newbie

      I have a problem. I want to test my app in my sandbox, in my eclipse. But my transactional env is Jboss. I need to get the transactionManager thru JNDI.

      is it possible ?

      Thanks in advance, Jblass.

        • 1. Re: access TransactionManager thru JNDI outside of the conta
          Oleg Zhurakousky Newbie

          No, you can not access Transaction Manager outside of the container. If you want to test somoething in the send box using JTA JBoss has DummyTransactionManager that you can use:

          // Set up transaction manager
          DummyTransactionManager.getInstance();
          Properties prop = new Properties();
          prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.cache.transaction.DummyContextFactory");
          UserTransaction tx = (UserTransaction)new InitialContext(prop).lookup("UserTransaction");
          
          


          Hope it helps