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

    Weblogic Transcantion Manager

    lakshmigk

      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();
      try
      {
      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

      Thanks
      Lakshmi