Using Spring, I want to read a variable inside the context of Webspehere.
Read a Environment Variable in Java with Websphere
To define the data.... inside we
I'm doing the same thing in my webapplication but unable to read from Initialcontext
applicationcontext.xml has
my.properties has
default_mask=9999
trying to read
Context context = new InitialContext();
String resource = context.lookup("java:comp/env/default_mask");
but the context's binding has only env-entry from web.xml, not from the properties file