Right now almost all references bound under java:comp are LinkRefs to global JNDI entries.
A container will get the JNDI name via a resolver. (The container deployer will get the MC
bean dependency via the same resolver to ensure the container depends upon it.) The
container will setup the LinkRef, because it is the only one allowed to write there.
Alternatively we could go for an ObjectFactory that hooks onto DeploymentServices, but I
don't see how get the container from an ObjectFactory (the usual can't get a MC
bean from there).
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250876#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...