Two Laptop Bag*
The moose likes Servlets and the fly likes How to load file at the time of start of the application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to load file at the time of start of the application " Watch "How to load file at the time of start of the application " New topic
Author

How to load file at the time of start of the application

Jay Shukla
Ranch Hand

Joined: Jun 08, 2008
Posts: 214
Hi All,

I have some set of properties and mapping files and have a requirement to load those at the the start up of the application along with web.xml.
How to load them at the start up without defining individually into web.xml?
Does Jconfig.jar provides same functionality?


Thanks in Advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60789
    
  65

context listener


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 800

Write a Listener. Read HFSJ book, you can find a good explanation.


Love all, trust a few, do wrong to none.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to load file at the time of start of the application
 
Similar Threads
How to load xml/properties file at startup while loading the Application in web-Server ?
Equivalent of servlet init() in JSF
Regarding Servlet Creation
Should we have web.xml for a web app?
object caching