• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Launch my own class before tomcat server loading the struts property file

 
Manju Na
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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.


Thanks in Advance.
Manju
 
Karthik Shiraly
Bartender
Posts: 1208
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manju I didn't understand what do you want to do? explain it.
 
Manju Na
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
Manju

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic