Hi, I have 3 struts based applications running in Tomcat 4.1.18. I have deployed them in Red Hat Linux Advanced Server 3.0 platform.
In all my 3 apps, I have implemented the Struts's PlugIn interface for doing the initialization tasks and configured them in the struts-config.xml as shown below (for one of the apps): <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/> </plug-in> <plug-in className="com.a.b.c.d.e.InitPlugIn"> <set-property property="filepath" value="/config/app.properties" /> </plug-in> In the init(ActionServlet servlet, ModuleConfig config) method of these plugin classes I create DB connections. On Windows (2k) platform it works fine. That is the init(.) method is called once for each app/plugin and the configured number of connections are created. But when I deploy them on our target Linux platform the init(.) method of 2 apps is called 2 times and the other app is called 4 times. I had some debug statements in the init(.) method of PlugIn class and they show it is called multiple times. One more thing I noticed is: I had put a static int variable in the PlugIn classes and am incrementing it in the constructor and printing it. Every time the value is printed as 0 (initial value) only and it is not getting incremented though the plugin is called multiple times. What must be wrong? Is it a problem with my code? If so I don't understand how it works fine on Windows. and I am sure there is no other place where mistakenly the DB connections could be created. Pl give your ideas on how I can resolve this. Any help will be highly appreciated. Thanks in advance, Uma. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.