4 Replies Latest reply on Mar 6, 2010 4:51 AM by Nikolay Elenkov

    Seam Quartz JobInitializationPlugin EntityManager null

    Hady Lattouf Newbie

      Hi All,


      I am trying to implement quartz with seam. The thing is I am trying to implement also the JobInitializationPlugin. everything is running ok, and the Job which is a stateless session bean is executing on time, BUT when I am trying to create an EntityManager instance inside my bean, the entity manager is always null and I am not able to retrieve data from database and I didn't mean database of quartz instead my app's DB.
      All my other session are communicating with the DB except for this one which is started in quartz context.
      It is our first project with seam and quartz and have no idea if I have to configure something for hibernate, seam or in any other place.


      Any help appreciated,


      Thanks.