I don't agree with an ear jndi context. All that is needed is an expansion of the existing component jboss specific contexts like the java:comp/env/security one providing access to deployment info outside of j2ee.
We should define a java:comp/jboss context and what gets linked to this to provide more access to the DeploymentInfo type of metadata.
There should also be a stable api for this info as the enc is not the best integration api. I should be able to access this info independent of a live component in the context of a request with the proper enc.