You should do this:

Context initial = new InitialContext();
Context environment = (Context)initial.lookup("java:comp/env");//this is the
name of the environment in which you can find

//the properties
MyObject object = (MyObject)environment.lookup("myObjectName");

-----Message d'origine-----
De : Manish Bijay Kumar [mailto:[EMAIL PROTECTED]]
Envoy� : mercredi 2 ao�t 2000 08:09
� : [EMAIL PROTECTED]
Objet : 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