Hi If you look at the JAVADOC for EJB 1.1. This is what you will find.
/**************
java.util.Properties getEnvironment()
          Deprecated. Use the JNDI naming context java:comp/env to access
enterprise bean's environment

********/

What this basically means is that you do not need to call
SessionContext.getEnvironment() when you want to create a new Context. You
can simply say Context initCtx = new InitialContext() and <ejbHome> =
initCtx.lookup("java:comp/env/<ejbname>");

Having said that, This is what I did to get rid of the deprecated warning
message from the compiler. I haven't tested my code to verify it works.

-Krishna



-----Original Message-----
From: Manish Bijay Kumar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 2 August 2000 16:09
To: [EMAIL PROTECTED]
Subject: sessioncontext.getEnvironment() is deprecated.


Hi all,
The method sessionContext.getEnvironment() is deprecated. Please tell me the
latest method to get the properties file.

Thanks in advance,
Manish

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to