<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*, 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 <gavin@hibernate.org><br><b><span style="font-weight: bold;">To:</span></b> Java Community Process JSR #299 Expert List
<JSR-299-EG@jcp.org>; Matt Drees <matt.drees@gmail.com>; Scott Ferguson <ferg@caucho.com>; WebBeans <webbeans-dev@lists.jboss.org><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 <<a ymailto="mailto:gavin@hibernate.org" href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>> wrote:<br>> Now here's a much more complete proposal that also makes the JMS<br>> resource stuff follow the new approach.<br>><br>> Look at the following sections:<br>><br>> 3.6<br>> 3.7.2<br>> 6.8<br>> 10.3<br>><br>> Seems to be working out very nicely. I really hope you guys like it.<br>><br>><br>> On Fri, Jan 9, 2009 at 2:24 AM, Gavin King <<a ymailto="mailto:gavin@hibernate.org" href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>> wrote:<br>>> Here's a second draft (still rough) that incorporates persistence<br>>> contexts and units into the same approach.<br>>><br>>> On Fri, Jan 9, 2009 at 12:47 AM, Gavin King <<a ymailto="mailto:gavin@hibernate.org"
href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>> wrote:<br>>>> Everyone, please take a look at section 3.6 of this spec draft, which<br>>>> defines a proposal for EE resource injection.<br>>>><br>>>> Basically, what I've proposed is that web beans would let you rewrite<br>>>> the following:<br>>>><br>>>> @Resource(mappedName="customerDatabase") Datasource ds;<br>>>><br>>>> as:<br>>>><br>>>> @CustomerDatabase Datasource ds;<br>>>><br>>>> <javaxsql:Datasource><br>>>> <Resource><br>>>> <mappedName>customerDatabase</mappedName><br>>>> </Resource><br>>>> <myapp:CustomerDatabase/><br>>>>
</javaxsql:Datasource><br>>>><br>>>> and:<br>>>><br>>>> @EJB(ejbLink="somejar#Foo") Foo foo;<br>>>><br>>>> as:<br>>>><br>>>> @Current Foo foo;<br>>>><br>>>> <myapp:Foo><br>>>> <EJB><br>>>> <ejbLink>somejar#Foo</ejbLink><br>>>> </EJB><br>>>> </myapp:Foo><br>>>><br>>>> and:<br>>>><br>>>> @WebServiceRef(name="barbar", wsdlLocation="barbarbar") Bar bar;<br>>>><br>>>> as:<br>>>><br>>>> @Current Bar bar;<br>>>><br>>>> <myapp:Bar><br>>>> <WebServiceRef><br>>>> <name>barbar</name><br>>>>
<wsdlLocation>barbarbar</wsdLocation><br>>>> </WebServiceRef><br>>>> </myapp:Bar><br>>>><br>>>> So this proposal is just basically an indirection around the<br>>>> pre-existing semantics of Java EE injection, that gives you all the<br>>>> nice Web Beans typesafety.<br>>>><br>>>> This seems a really nice, easy way to define this stuff, and I love<br>>>> how the XML looks.<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>>><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>><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><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>