[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [stp-dev] STP-SCA Tools not drawing wire lines when reference target uses component URI instead of Component/Service URI
|
Hi Luciano,
Seems like a bug indeed.
Can you open a ubg entry in the SCA bugzilla? [0]
Regards,
Vincent Zurczak.
[0] :
https://bugs.eclipse.org/bugs/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__all__&product=SCA&content=sca
Luciano Resende a écrit :
Looks like the algorithm used to draw the wiring lines between
service/reference only works if the reference specify the target
service in the form of Component/Service URI. Note that, when the
component only have one service, a Component URI is also valid, but it
looks like the SCA tools does not recognize it and thus no wiring
lines are drawn. Please see below my test composite :
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:s="http://sample"
xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0" name="rest"
targetNamespace="http://sample">
<component name="ExpertRegistryComponent">
<implementation.java
class="org.apache.tuscany.sample.expertise.ExpertRegistryImpl"/>
<service name="ExpertRegistry">
<interface.java
interface="org.apache.tuscany.sample.expertise.ExpertRegistry"/>
</service>
</component>
<component name="RestExpertiseLocatorComponent">
<implementation.java
class="org.apache.tuscany.sample.expertise.RestfulExpertiseLocator"/>
<service name="Servlet">
<t:binding.http uri="http://localhost:8200/experts"/>
</service>
<reference name="experts" target="ExpertRegistryComponent"/>
</component>
</composite
--
Vincent Zurczak
EBM WebSourcing
+33 (0) 4 38 12 91 72