users@glassfish.java.net

Re: GF v2.1.1 deployment events

From: Trond Strømme <Trond.Stromme_at_Sun.COM>
Date: Thu, 10 Dec 2009 11:26:58 +0100

you can implement a servlet that is loaded when a war file is deployed

in the web.xml file
<servlet>
<servlet-name>myservlet</servlet-name>
<load-on-startup>1</load-on-startup>

the int specifies the order of loading servlets

alternatively you can implement a glassfish lifecycle listener and
deploy this separately from the ear file

.trond

glassfish_at_javadesktop.org wrote:
> No, there are no formal application lifecycle events sent in v2.x. We do have these events in v3, but you can probably solve the problem with the v3 Singleton there already.
> [Message sent by forum member 'hzhang_jn' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=375609
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
Trond Strømme
Application Platform Ambassador
Sun Microsystems Nordic, Professional Services
+47 975 09 388
http://blog.sun.com/tronds