Hi,

when I'm compiling my ejb, the compiler is displaying the following message:
ejbeans/AbstractEnterpriseBean.java:32: Note: The method java.util.Properties getEnvironment() in interface javax.ejb.EJBContext has been deprecated.
        return _context.getEnvironment();

API explanation:

getEnvironment
public java.util.Properties getEnvironment()
Deprecated. Use the JNDI naming context java:comp/env to access enterprise bean's environment.

Obtain the enterprise bean's environment properties.
Note: If the enterprise bean has no environment properties this method returns an empty java.util.Properties object. This method never returns null.

Returns:
The environment properties for the enterprise bean.

is Anyone already used JNDI to access enterprise bean's environment ? I don't know how to do it, someone can send me an example ?

Regards

Marcelo Bellezo

Reply via email to