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).
Ok, so concretely, how do we go about the CDI manager there?