3 Replies Latest reply on Nov 22, 2004 9:26 AM by bill.burke

    EntityManager class

    nseb

      I have à common.jar wich inside have Service interface

      import javax.ejb.EntityManager;
      public interface Service {
       public EntityManager getEntityManager();
      }
      
      



      When the jar is deployed , I have à ClassNotFoundException javax.ejb.EntityManager.

      an idea ?

        • 1. Re: EntityManager class
          bill.burke

          Looks like you don't have the ejb3.deployer archive deployed in your deploy directory.

          Bill

          • 2. Re: EntityManager class
            nseb

            I Have it.

            I have a user.ejb3 wichi UserService Class implements Service
            wich
            @Inject
            EntityManager entityManager;

            don't work.

            But if a remove Service Interface , and let in UserService Class ,
            @Inject
            EntityManager entityManager; it's work.

            My question , it's possible to use Class javax.ejb.EntityManager , in not ejb3 jar module ?


            • 3. Re: EntityManager class
              bill.burke

              Can you specify your exact package structure so that I can duplicate? Or can you just send me a simple test case?

              bill@jboss.org