users@glassfish.java.net

RE: GF v2.1.1 deployment events

From: Huiping Zhang <huiping.zhang_at_ericsson.com>
Date: Thu, 10 Dec 2009 08:07:19 -0500

Hi,
I'm definitively not an expert in this, just be curious, could
        com.sun.enterprise.server.ApplicationLoadEventListener
be used for this need?

Best Regard,
Huiping
-----Original Message-----
From: Trond.Stromme_at_Sun.COM [mailto:Trond.Stromme_at_Sun.COM]
Sent: December 10, 2009 5:27 AM
To: users_at_glassfish.dev.java.net
Subject: Re: GF v2.1.1 deployment events

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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net