I have posted an article about how to read J2EE configuration on SDN China
URL:
http://developers.sun.com.cn/blog/functionalca/entry/javaee%E8%AF%BB%E5%8F%96%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9A%84%E5%B8%B8%E7%94%A8%E7%AD%96%E7%95%A5
I suggest you'd better use Commons Configuration which is a project of Apache Commons.
For more infomation,please click
http://commons.apache.org/configuration/
PS: I think the xml format is better than properties format!
:)