Is it possible to launch my own class before tomcat server loading the struts property file. I have tried using Servlet App Event Listeners. In the listener class, can able to update my struts property file. But when the app starts, it is not taking updated property file in to the picture. So is there any way for this.
What are you trying to achieve by updating the property (struts-config?) file?
Updating a configuration file may be one (possibly kludgy) way of achieving whatever the goal is, but there may be better ways we can suggest, if you can tell us what it is.
Hi Manju I didn't understand what do you want to do? explain it.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Joined: Aug 18, 2011
Hi all, Sorry if my question is not proper.
my question is : Is it possible to launch my own class before server loading all the message property files into the memory. I have tried using Servlet App Event Listeners.Through this class, we can monitor the Tomcat server starting from the method contextInitialized() and closing from the method contextDestroyed(). But
this class will be called after server loading all the message property files into the memory. So is there any way to launch my own class before loading all the message property files into the memory.