We need a general purpose way of finding a BeanManager.<div>+1 for me.</div><div><br></div><div>This way should include JNDI lookup to a fallback BeanManagerLocator that uses a ServiceLoader</div><div>+1 for me.</div><div>
<br></div><div>I think the behavior should look like this:</div><div><br></div><div><ul><li>Lookup BeanManager in JNDI</li><li>If not found, try to load BeanManagerLocator from system property.</li><li>If not found, try to load BeanManagerLocator from ServiceLoader.</li>
<li>If more than one BeanManagerLocator found, sort by priority or die if there is more than one. (not sure about the sort, I think it should die, but can be convinced otherwise).</li><li>Once the BeanManagerLocator is found, use it to return a BeanManager</li>
</ul><meta charset="utf-8"></div><div><br></div><div>In addition,</div><div><br></div><div>I think we need a simplified interface for BeanManager. </div><div><br></div><div><a href="https://github.com/CDISource/cdisource/blob/master/beancontainer/api/src/main/java/org/cdisource/beancontainer/BeanContainer.java">https://github.com/CDISource/cdisource/blob/master/beancontainer/api/src/main/java/org/cdisource/beancontainer/BeanContainer.java</a></div>
<div><br></div><div>This could just be a utility class, but it should be included with CDI 1.1. I think the  BeanManager interface is too low level.</div><div><br></div><div><br></div><meta charset="utf-8"><div><br>-- <br>
<b>Rick Hightower</b><br>(415) 968-9037 <br><a href="http://www.google.com/profiles/RichardHightower" target="_blank">Profile</a> <br><br>
</div>