I\'ve got a regular java file that I use to update and query a mysql database but I need to take configurable options in that file (like host name, password, etc) and put it
One way is to read xml file and parse it.
You can put it on some static map in after parsing in ServletContextListener
ServletContextListener