I couldn't find the getEnvironment() in javax.ejb.EJBObject.
There is a same methed in the javax.ejb.EJBContext interface, I am not sure if you are talking about this one. It is deprecated. The same effect is achieved through JNDI naming context java:complenv .
Jabber's java questions...