custom properties
I am using websphere app server 5.1 Have set some custom properties under
Servers > Application Servers > server > Custom Properties > property_name
e.g
HOST
USER_ID and PASSWD
Am trying to access these custom properties as follows
javax.naming.Context ic;
try
{
ic =new javax.naming.InitialContext();
javax.naming.Context ctx = (javax.naming.Context) ic.lookup("java:comp/env");
String variablename = (String) ctx.lookup("HOST");
System.out.println("variablename =====>" + variablename);
}catch (NamingException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
But fail to retrive it since I get an exception saying
[code]
[9/8/06 16:50:28:847 EDT] 6a3eaef3 SystemErrR javax.naming.NameNotFoundException: Name "HOST" not found in context "java:comp/env".
[code]
Please advise.

