users@glassfish.java.net

servletContextListener

From: <glassfish_at_javadesktop.org>
Date: Sun, 23 Mar 2008 17:52:35 PST

I'm trying to have a java class get notified when a servlet context is created so I can perform some initialization. I found the info on the web about a servletContextListener. I think I've got one implemented. I just need to know how to configure glassfish to call it. I've poked around and poked around. Seems like there is some necessary configuration in the deployment descriptors, but which specific elements need to be set and to what values? Im running

Sun Java System Application Server Platform Edition 9 Update 1

As a secondary question, I've been using and deploying webapps for a number of years... always with a minimal web.xml file because nothing special was needed. While I was able to find what appears to be the doc on deployment descriptor files and their contents, I wasn't able to find the answer to the above question in the glassfish doc, java documentation. Can you point me at the best place to learn about them?
[Message sent by forum member 'wittenberg' (wittenberg)]

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