<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hi;<br><br>As far as I know, with the *JMS exception*,&nbsp; Java EE container injects the artifacts : Java EE Resources, Persistent Context, Persistent Unit, EJB and WebService when developer use the applicable annotations that are defined in its respective specifications.<br><br>I think that addition of the extra layer may not be necessary for these type of resources.<br><br>Thanks;<br><br>/Gurkan<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Gavin King &lt;gavin@hibernate.org&gt;<br><b><span style="font-weight: bold;">To:</span></b> Java Community Process JSR #299 Expert List
 &lt;JSR-299-EG@jcp.org&gt;; Matt Drees &lt;matt.drees@gmail.com&gt;; Scott Ferguson &lt;ferg@caucho.com&gt;; WebBeans &lt;webbeans-dev@lists.jboss.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, January 14, 2009 3:04:32 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [webbeans-dev] Re: Rough draft proposal for resource injection<br></font><br>
I have still received very little feedback on this proposal...<br><br>On Fri, Jan 9, 2009 at 9:44 PM, Gavin King &lt;<a ymailto="mailto:gavin@hibernate.org" href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>&gt; wrote:<br>&gt; Now here's a much more complete proposal that also makes the JMS<br>&gt; resource stuff follow the new approach.<br>&gt;<br>&gt; Look at the following sections:<br>&gt;<br>&gt; 3.6<br>&gt; 3.7.2<br>&gt; 6.8<br>&gt; 10.3<br>&gt;<br>&gt; Seems to be working out very nicely. I really hope you guys like it.<br>&gt;<br>&gt;<br>&gt; On Fri, Jan 9, 2009 at 2:24 AM, Gavin King &lt;<a ymailto="mailto:gavin@hibernate.org" href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>&gt; wrote:<br>&gt;&gt; Here's a second draft (still rough) that incorporates persistence<br>&gt;&gt; contexts and units into the same approach.<br>&gt;&gt;<br>&gt;&gt; On Fri, Jan 9, 2009 at 12:47 AM, Gavin King &lt;<a ymailto="mailto:gavin@hibernate.org"
 href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>&gt; wrote:<br>&gt;&gt;&gt; Everyone, please take a look at section 3.6 of this spec draft, which<br>&gt;&gt;&gt; defines a proposal for EE resource injection.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Basically, what I've proposed is that web beans would let you rewrite<br>&gt;&gt;&gt; the following:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;  @Resource(mappedName="customerDatabase") Datasource ds;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; as:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;  @CustomerDatabase Datasource ds;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;  &lt;javaxsql:Datasource&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &lt;Resource&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;  &lt;mappedName&gt;customerDatabase&lt;/mappedName&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &lt;/Resource&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &lt;myapp:CustomerDatabase/&gt;<br>&gt;&gt;&gt;&nbsp; 
 &lt;/javaxsql:Datasource&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; and:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;  @EJB(ejbLink="somejar#Foo") Foo foo;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; as:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;  @Current Foo foo;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;  &lt;myapp:Foo&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &lt;EJB&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;  &lt;ejbLink&gt;somejar#Foo&lt;/ejbLink&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &lt;/EJB&gt;<br>&gt;&gt;&gt;&nbsp;  &lt;/myapp:Foo&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; and:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;  @WebServiceRef(name="barbar", wsdlLocation="barbarbar") Bar bar;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; as:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;  @Current Bar bar;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;  &lt;myapp:Bar&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &lt;WebServiceRef&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;  &lt;name&gt;barbar&lt;/name&gt;<br>&gt;&gt;&gt;&nbsp;
 &nbsp; &nbsp; &nbsp;  &lt;wsdlLocation&gt;barbarbar&lt;/wsdLocation&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &lt;/WebServiceRef&gt;<br>&gt;&gt;&gt;&nbsp;  &lt;/myapp:Bar&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; So this proposal is just basically an indirection around the<br>&gt;&gt;&gt; pre-existing semantics of Java EE injection, that gives you all the<br>&gt;&gt;&gt; nice Web Beans typesafety.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; This seems a really nice, easy way to define this stuff, and I love<br>&gt;&gt;&gt; how the XML looks.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; --<br>&gt;&gt;&gt; Gavin King<br>&gt;&gt;&gt; <a ymailto="mailto:gavin.king@gmail.com" href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>&gt;&gt;&gt; <a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>&gt;&gt;&gt; <a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>&gt;&gt;&gt; <a href="http://seamframework.org"
 target="_blank">http://seamframework.org</a><br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; Gavin King<br>&gt;&gt; <a ymailto="mailto:gavin.king@gmail.com" href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>&gt;&gt; <a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>&gt;&gt; <a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>&gt;&gt; <a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Gavin King<br>&gt; <a ymailto="mailto:gavin.king@gmail.com" href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>&gt; <a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>&gt; <a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>&gt; <a href="http://seamframework.org"
 target="_blank">http://seamframework.org</a><br>&gt;<br><br><br><br>-- <br>Gavin King<br><a ymailto="mailto:gavin.king@gmail.com" href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br><a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br><a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br><a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>_______________________________________________<br>webbeans-dev mailing list<br><a ymailto="mailto:webbeans-dev@lists.jboss.org" href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br></div></div></div><br>



      </body></html>