0 Replies Latest reply on Apr 17, 2007 10:55 AM by Zalder R

    access the seam managed PersistenceContext in a @Startup obj

    Zalder R Newbie

      I'm trying to access the seam managed persistence context inside a seam POJO declared as @Startup.
      When the object is created the inject seam managed persistence context is null

       private EntityManager em;

      Is there a way to do that (basically I need to schedule some maintenance related operations at startup time ... and those operations must access the database ...) ?