Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[stp-dev] STP-SCA Tools not drawing wire lines when reference target uses component URI instead of Component/Service URI

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>

-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/


Back to the top