<br><font size=1 face="sans-serif"><b>&quot;Stanley M. Ho&quot; &lt;Stanley.Ho@SUN.COM&gt;</b></font><tt><font size=2>
wrote on 13/06/2007 07:19:10 PM:<br>
<br>
&gt; Since I have not heard any further input on the services and<br>
&gt; service-providers strawman, I suppose the EG is fine with the strawman<br>
&gt; overall except the issue raised by Richard. Unless I hear any objection,<br>
&gt; I will incorporate the appropriate portion of the strawman based on
the<br>
&gt; feedback you have provided into the next revision of the specification.<br>
<br>
I am very concerned that the scope of JSR 277 is being expanded considerably
without much attention being paid to the state of the art (particularly
Spring-OSGi and Declarative Services). If we could implement good interoperation
with JSR 291, we could delegate the complexities of supporting services
to JSR 291 and technologies like Spring-OSGi that layer nicely on top of
JSR 291.</font></tt>
<br>
<br><tt><font size=2>Apart from that, the support for services in the strawman
has some obvious holes, so I don't think it is ready to be incorporated
into the JSR 277 specification:</font></tt>
<br>
<br><tt><font size=2>1. It seems to be lacking any form of dependency injection.</font></tt>
<br>
<br><tt><font size=2>2. The namespace of services is global, but not partitioned
by service interface version. The effect of this is that a module could
import v1 of a service interface class and obtain an instance of the service
that implements v2 of the service interface and get a class cast exception.</font></tt>
<br>
<br><tt><font size=2>3. There is no support for dynamic updates of service
providers and notification of service updates to service consumers. (This
is consistent with JSR 277's static nature, but I point it out as this
is an obvious future requirement based on our experience in OSGi.)</font></tt>
<br>
<br><tt><font size=2>4. There seems to be some confusion in the strawman
between loading of service interfaces/implementations and construction
and publication of service instances.</font></tt>
<br>
<br><tt><font size=2>I wonder what other Expert Group members think of
this strawman. Silence does not necessarily indicate happiness, so it would
be good to have more feedback.</font></tt>
<br>
<br><tt><font size=2>Glyn</font></tt><font size=3 face="sans-serif"><br>
</font>
<br><font size=3 face="sans-serif"><br>
</font>
<hr><font size=2 face="sans-serif"><br>
<i><br>
</i></font>
<p><font size=2 face="sans-serif"><i>Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU</i></font>
<p><font size=2 face="sans-serif"><br>
</font><font size=3 face="sans-serif"><br>
</font>
<br>
<br><font size=3 face="sans-serif"><br>
</font>