0 Replies Latest reply on Aug 19, 2011 4:11 AM by gvnsbt

    Staless EJB and PersistentContext

    gvnsbt Newbie

      I'm trying to develop a stateless EJB.

      The use of EntityManager is managed via container with @PersistentContext annotation.

      The question is wheter there is a way to access, to staeless ejb from servlet via InitialContex.lookup method, to multiple PersistentContext of ejb stateless.

      In this way I could use the same code with different datasource.

       

      I have several companies that run the same code but use different databases istance.

       

       


       

       

      Kind Regards.

       

       

      GvnSbt.