RE: [JBoss-user] Entity Context Error

2003-08-18 Thread Danny . Yates
As the exception says: Deprecated According to the documentation, EJBContext.getEnvironment() is deprecated (and, IIRC, it has been for some time). Deprecated. Use the JNDI naming context java:comp/env to access enterprise bean's environment. Dan. -- Danny Yates -Original Message-

Re: [JBoss-user] Entity Context Error

2003-08-18 Thread Adrian Brock
You should use new InitialContext().lookup(java:comp/env); Regards, Adrian On Mon, 2003-08-18 at 12:44, David McLoughlin wrote: When I call the following method I get the following error. This is a method in my Entity Bean public void setEntityContext(EntityContext ctx) throws