This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The env-entry actually gets stored in JNDI, so you'd have to access it just like looking up an EJB Home interface - create an initial context; look up the env-entry name; cast the value to the appropriate class.
You can find more information on using environment variables about halfway through this article on Sun's website.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.