John -

As you said - EJBContext.getEnvironment() has now been deprecated. EJBs
now access environment properties via a JNDI context. The Bean Provider
defines environment settings declaratively (in ejb-jar.xml). It is the
responsibility of the container to populate the JNDI tree with these at
runtime.

You then access these properties using standard the JNDI API:
  InitialContext ctxt = new InitialContext();
  ...
  ctxt.lookup("java:/comp/env/someThing");

For Weblogic, take a look at:

http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_whatsnew.html#1024497

regards,
paul.

> John McDonald wrote:
>
> In EJB 1.1 getEnviroment() is a deprecated API. What replaced it? I
> keep getting an exception from WebLogic that it no longer supports
> getEnvironment().
>
> Thanks.
>
> -jdm-
> web app guru
> ClientScience.com, Inc.
> p 925.373.8700
> f  413.793.6603
> e [EMAIL PROTECTED]



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===========================================================================
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