3 Replies Latest reply on Jul 30, 2007 5:02 AM by Edem Morny

    Asynchronous call before App Startup

    Edem Morny Novice

      I'm using JBoss Seam 1.2.1.GA. I've been trying to start an asynchronous process that send out notifications of an event in emaisl immediately the application starts up. This event may have already been configured during a previous run of the application.

      The asyncrhronuous method also needs to have access to an EntityManager to read the details of the event and to a facelet-configured email template.

      The problem is i don't know how to automatically invoke the asynchronous method before the first user even logs in and what scope to outject the list of recepients and data so that the email template can send it.

      I've tried @Startup and @Scope(APPLICATION) but the contexts are not configured at that stage so i get a null pointer.

      Any ideas?