1 Reply Latest reply on Mar 15, 2005 5:08 PM by ch3

    lookup EntityManager inside ejb3 container without injection

    bill.burke

      The second one should work..it doesn't? Are you looking it up at least in the context of a Session bean call? The sesson bean isn't a 2.1 session bean is it?

        • 1. Re: lookup EntityManager inside ejb3 container without injec
          ch3

          I added the code that does the lookup in your tutorial/entity/.../ShoppingCartBean. I tried those lookup names but all failed. Now I worked around this issue by passing the injected EntityManager around.

          I also look forward to seeing a way to look up EntityManager in J2SE environment in the next preview.