users@glassfish.java.net

Re: Is there a way to automatically instantiate a bean at startup?

From: <glassfish_at_javadesktop.org>
Date: Sun, 08 Mar 2009 11:42:23 PDT

I guess you are talking about GlassFish v2.

Have you looked at lifecycle module ?
http://docs.sun.com/app/docs/doc/819-3672/beamc?a=view
https://glassfish.dev.java.net/nonav/javaee5/api/com/sun/appserv/server/package-summary.html
http://docs.sun.com/app/docs/doc/819-3675/create-lifecycle-module-1?a=view

Another approach is to ue custom mBeans.
http://docs.sun.com/app/docs/doc/819-3672/gbdzi?a=view

thanks
sreeni
[Message sent by forum member 'msreddy' (msreddy)]

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