This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60049
    
  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
Regarding Servlet Creation
How to load xml/properties file at startup while loading the Application in web-Server ?
object caching
Equivalent of servlet init() in JSF
Should we have web.xml for a web app?