[jboss-user] [JBoss Seam] - Asynchronous call before App Startup

damatrix do-not-reply at jboss.com
Wed Jul 25 10:43:55 EDT 2007


Hi,
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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067426#4067426

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067426



More information about the jboss-user mailing list