<div class="gmail_quote">On Wed, Dec 23, 2009 at 3:13 PM, Jeremy Grelle <span dir="ltr">&lt;<a href="mailto:Jeremy.Grelle@springsource.com">Jeremy.Grelle@springsource.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">Ahh, I see...I made the mistake of assuming that CDI was already exposing such beans via EL.  Indeed, having to resolve the bean from JNDI isn&#39;t too pleasant.  Looking at the spec, I see now that @Named is necessary to give a bean an EL name.  <div>
<br></div><div>WRT @javax.annotation.ManagedBean, Spring just uses the value as the bean id, rather than registering anything with JNDI,</div></div></blockquote><div><br>Right, that makes sense, since both are what I would call the &quot;native internal id representation&quot; of the bean.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div>thus it becomes resolvable via EL as long as you register the provided SpringBeanELResolver.<br>
</div></div></blockquote><div><br>Got it. So in a sense this is like the ManagedBeanELResolver I proposed, except that looking up in JNDI is not as straightforward as looking up a Spring bean id.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div><div><br></div><div>Agreed, then, since we do support the use of @Named at the class level in Spring, it makes sense to settle on it for the sake of more consistent examples.<br></div></div></div></blockquote>
<div><br>Excellent. There you have it, folks ;)<br><br>-Dan<br></div></div><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>