Thank you both much!!!   I guess I will try using the ServletContextListener 
because I am using Servlet 2.3 as found in Tomcat 4.1.  I have tried hard on 
staying away from having a common initilization, but the scope of the service 
platform I created requires the ability now...so that each product can have its 
own specific interface callbacks as need be.   Guess this is the only way to 
achieve a generic platform and have specific service interfaces that sit on top.

Thank you for the help.   Now I just have to figure how to implement it.




----- Original Message -----
From: Joe Germuska <[EMAIL PROTECTED]>
Date: Tuesday, November 30, 2004 6:10 pm
Subject: RE: MVC initialization

> At 6:02 PM -0500 11/30/04, Robert Taylor wrote:
> >A standardized approach would be to implement a 
> >ServletContextListener and define it
> >in your web.xml for the web app. It will be invoked before the 
> web 
> >app accepts any requests
> >and when the web app is shutdown.
> >
> >A more "Struts" approach would be to use a PlugIn and define it 
> in 
> >your struts-config.xml file.
> 
> Note that the only compelling reason to use a PlugIn would be if 
> you 
> were still only on Servlet 2.2 (when it hadn't yet been 
> introduced) 
> or if you needed your PlugIn to have a reference to the 
> ModuleConfig 
> object corresponding to the Module in which the PlugIn was defined.
> 
> Just wanted to point out that just because it's a "more 'Struts'" 
> approach, it's not necessarily better.
> 
> Then again, I keep writing PlugIns myself, just out of habit.  
> They work.
> 
> Joe
> -- 
> Joe Germuska            
> [EMAIL PROTECTED]  
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to