EJB programming & troubleshooting: How can I get infomation deployed in the ejb env-entry
- Posted by: xianbing yu
- Posted on: August 20 2002 02:01 EDT
I have develop a ejb , and I have some infomation deployed in the ejb deployment description as follows,
I have tried to use the SessionContext.getEnvironment() to get these infomations , but I failed, Are there some body can help me ?
Thanks ahead !
- How can I get infomation deployed in the ejb env-entry by Arun Sethia on August 20 2002 02:14 EDT
- How can I get infomation deployed in the ejb env-entry by xianbing yu on August 20 2002 02:29 EDT
You can read this env-entry using this code
Context ctx = new InitialContext();
String val = (String)ctx.lookup("java:comp/env/SERVICE_1");
Thank you very much ,It seems to be that SessionContext.getEnvironment is deprived in ejb2.0 and replaced by the way you prive to me .