Simple example in this week's project
Profile can be placed in the class sessate directory under Web-INF
Properties var = new profment ();
ClassLoader ClassLoader =
Thread.currentthread (). GetContextClassLoader ();
Try {
Var.Load (ClassLoader.getResourceAsStream (configfile);
} catch (ioexception e) {
// Todo Auto-Generated Catch Block
E.PrintStackTrace ();
}