users@glassfish.java.net

multiple virtual server and ServletContextListener

From: <glassfish_at_javadesktop.org>
Date: Tue, 08 Jan 2008 03:19:16 PST

Hello.

If I deploy webapp to glassfish which have multiple virtual server configed.
And not select which virtual server it attached.

The ServletContextListener#contextInitialized will be called multiple times.
It seems called once per virtual server.

Does webapp must attach to only one virtual server?
[Message sent by forum member 'chunlinyao' (chunlinyao)]

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