Hi friends.,
I am attaching the copy of my ejb-jar.xml, and the code also whic i am using to , fetch the value of an <b>Environment variable named interestrate</b>
<session>
<env-entry>
<description>Reflect the present interest rate</description>
<env-entry-name>interestrate</env-entry-name>
<env-entry-type>java.lang.Float</env-entry-type>
<env-entry-value>9.0</env-entry-value>
</env-entry>
</session>
Code used to acess the variable
Context initialcontext = new InitialContext();
(Float)initialcontext.lookup("java:comp/env/interestrate")
But i am getting a Java.NameNotFoundException
I am able to access the local session bean using the ejb-ref under the context
java:comp/env/ejb/local .
But when i am trying to use the above code for accessing the environment variable , in a method of the stateless session bean i am not able to
Need you help
Thxs
Perry