1 Reply Latest reply on Jun 17, 2003 4:56 AM by ccsaxton

    UserTransaction

    ccsaxton Newbie

      I have some code that I call from within a Web app which makes use of UserTransactions but if I try and use the same code in my MBean it says that UserTransaction is not bound! Any help here would be greatly appreciated. Do I need to use the depends key word in some way?

        • 1. Re: UserTransaction
          ccsaxton Newbie

          Okay I managed to figure out what is causing this?

          In code I have the following lookup for a user transaction which works fine when calling from within a servlet

          java:comp/UserTransaction

          This fails though when calling from an MBean so I changed the code to call

          UserTransaction

          removing java:comp/ and all works fine...something is not quite right here guys