users@glassfish.java.net

Re: execute code on deployment/server start up with ejb3

From: <glassfish_at_javadesktop.org>
Date: Thu, 27 Sep 2007 00:24:10 PDT

The only way I know of which I used in the past is to implement a ServletContextListener packaged in your WAR, you can put custom code in the contextInitialized method which will be called when your application gets deployed.

S.D.
[Message sent by forum member 'samdoyle' (samdoyle)]

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