Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
context listener
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write a Listener. Read HFSJ book, you can find a good explanation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic