users@glassfish.java.net

auto execute ejb

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Mar 2009 03:36:46 PDT

I would like an ejb to be auto construct when glassfish starts up. Is this possible?

In fact, I am trying to develop a job scheduler to fire up some ejb or processes at regular time interval. But the only method I can think of is to have a auto-construct ejb as the job scheduler, which will invoke other ejb for the processes according to a timer. Is there a better way to do this instead of my idea?

I know how to do it using something like a java service loader. But I would like to do it within Glassfish if possible.
[Message sent by forum member 'senderj' (senderj)]

http://forums.java.net/jive/thread.jspa?messageID=335821