Scott,

Thanks for your response. I added my listener to the web-app-default section
in the app-default.xml file. before the import of the web application's
web.xml and that solved the problem.

Thanks
Sashi

On 1/14/08, Scott Ferguson <[EMAIL PROTECTED]> wrote:
>
>
> On Jan 10, 2008, at 4:03 PM, Sashidhar Guduri wrote:
>
> > Servlet 2.4 spec guarantees the order of the listener creation is
> > the order in which they are specified in the web.xml. In Resin, if
> > I specify a listener in the web-app-default part of resin.conf, how
> > do I make sure that one is created before the ones specified in the
> > web.xml. Is that even possible?
>
> The order is the same as in the resin.conf.  web-app-defaults are
> applied before any explicit <web-app>
>
> The trick, though, is that WEB-INF/web.xml and WEB-INF/resin-web.xml
> are defined in resin/conf/app-default.xml in a web-app-default.
>
> So, it matters where your web-app-default is.  If it's before the
> <resin:import> of app-default.xml, it will be applied first.
>
> You can change the order a bit by using a <prologue> tag around your
> defaults.  Resin really does two passes:
>
>    1. all the web-app-default values with a <prologue>
>    2. all the web-app-default values outside the <prologue>
>
> -- Scott
>
> >
> >
> > Thanks
> > Sashi
> > _______________________________________________
> > resin-interest mailing list
> > resin-interest@caucho.com
> > http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to