I need some help.

I have an app which I am putting into WAS 5.1 and the app needs an external property file. I don't want to hardcode the file name & location so i was looking for some way of defining in the WAS 5.1 admin console a custom system property that my app can view/retrieve. So far i havent had any luck.

I have added a property to the SERVERS -> myserver -> CUSTOM PROPERTIES and added a value like: "myapp.propfile" with a value like "c:\test\config\myapp.prop"

and then in my java code had a test where it would do:

System.out.println("myapp.propfile=" + System.getProperty("myapp.propfile"));

but it doesnt work.

Can someone suggest something? or a better/proper way?