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

    access TransactionManager thru JNDI outside of the container

      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

          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