5 Replies Latest reply on Apr 27, 2005 6:16 AM by Ruchi

    Weblogic Transcantion Manager

    Lakshmi Anantharaman Newbie

      If JbossJCache is running on weblogic ahould it be hooked up to the Weblogic Transaction Manager . How is this done ?

      On tree cache startup the following code breaks because no credential are used to obtain the context and bind is not allowed in this context.

      public static DummyTransactionManager getInstance()
      if(instance == null)
      instance = new DummyTransactionManager();
      Properties p = new Properties();
      p.put("java.naming.factory.initial", "org.jboss.cache.transaction.DummyContextFactory");
      Context ctx = new InitialContext(p);
      ctx.bind("java:/TransactionManager", instance);
      ctx.bind("UserTransaction", new DummyUserTransaction(instance));
      catch(NamingException e)
      log.error("binding of DummyTransactionManager failed", e);

      I would appreciate any feedback