users@glassfish.java.net

Re: servletContextListener

From: Sahoo <Sahoo_at_Sun.COM>
Date: Mon, 24 Mar 2008 07:42:59 +0530

This is a standard Java EE feature, so you can find your answers in some
generic documentation. I suggest you take a look at the the web
application development chapters of Java EE 5 tutorial [1].

Thanks,
Sahoo

[1] http://java.sun.com/javaee/5/docs/tutorial/doc/bnafi.html#bnafj

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