users@glassfish.java.net

how to execute singleton startup tasks?

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 May 2008 02:32:12 PDT

Hello,

Is there a way to execute application scoped singleton startup tasks?
Until now I found the following possibilities:
- lifecycle modules (http://forums.java.net/jive/thread.jspa?messageID=267264&)
  these seem to be server scoped components, not application scoped
  there is no event for application startup
- eagerly loaded servlet or ServletContextListener
  in this case I have to handle the singleton behaviour in the cluster, handle failure of the startup task, etc.

Is there a better solution?

Thanks for your help in advance!
Regards:
Norbi
[Message sent by forum member 'snorbicet' (snorbicet)]

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