Java EE environment dependencies are more static than that, so they wouldn't be a good fit. Similarly, the global namespace is not intended for writes by an application at runtime.
You could accomplish what you want using an EJB 3.1 Singleton that exposes a Remote interface. It would be up to you to define the interface but it's easy enough to expose a generic name/value pair view.
[Message sent by forum member 'ksak']
http://forums.java.net/jive/thread.jspa?messageID=395550