You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Kaushik Mukherjee <km...@gmail.com> on 2009/08/02 16:41:57 UTC
Re: [jira] Commented: (TUSCANY-3179) Binding uri is built incorrectly
when the target attribute is used across deployable composites
Hi Luciano, yes, "the FrontEndNewsComponent component is in one
composite and then SDONewsServiceComponent in another one" but they
are both in the same domain. However, if I place both components in
the same composite the binding uri is resolves correctly on the
reference side.
file:backend.composite
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:ts="http://tuscany.apache.org/xmlns/sca/1.0"
targetNamespace="http://www.ibm.com/test/soa/sca"
name="BackEndComposite">
<component name="SDONewsServiceComponent">
<implementation.java class="test.abdera.NewsServiceImpl"/>
<service name="NewsService">
<interface.wsdl
interface="http://abdera.test/#wsdl.interface(NewsService)"/>
<ts:binding.atom uri="/sdoNewsService"/>
</service>
</component>
</composite>
--------------------------------------------------------------------------------------------------------------------------------------------------------
file:frontend.composite
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://www.ibm.com/test/soa/sca"
xmlns:ts="http://tuscany.apache.org/xmlns/sca/1.0"
name="FrontEndComposite">
<component name="FrontEndNewsComponent">
<implementation.java class="test.abdera.NewsImpl"/>
<service name="NewsClient">
<interface.java interface="test.abdera.NewsClient"/>
</service>
<reference name="newsServiceRef"
target="SDONewsServiceComponent/NewsService">
<ts:binding.atom />
</reference>
</component>
</composite>
Also, by "a piece of the code that is contributing these composites"
do you mean the sca-contribution.xml files?
On Sat, Aug 1, 2009 at 12:16 AM, Luciano Resende
(JIRA)<de...@tuscany.apache.org> wrote:
>
> [ https://issues.apache.org/jira/browse/TUSCANY-3179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737830#action_12737830 ]
>
> Luciano Resende commented on TUSCANY-3179:
> ------------------------------------------
>
> It's not clear here what do you mean by "different deployable composites" ? Is the FrontEndNewsComponent component in one composite and then SDONewsServiceComponent in another one ? Are these in two separated domains ? If so, you would have to specify the uri on the front end reference in the binding.atom... Also, a piece of the code that is contributing these composites would be helpful.
>
>> Binding uri is built incorrectly when the target attribute is used across deployable composites
>> -----------------------------------------------------------------------------------------------
>>
>> Key: TUSCANY-3179
>> URL: https://issues.apache.org/jira/browse/TUSCANY-3179
>> Project: Tuscany
>> Issue Type: Bug
>> Components: Java SCA ATOM Binding Extension
>> Reporter: Kaushik Mukherjee
>>
>> If the two components below are in different deployable composites the binding URI is not resolved correctly in the front end. In AtomBindingInvoker the uri formed looks like the web service uri:
>> http://localhost:9080/SDONewsServiceComponent/NewsService
>> instead of..
>> http://localhost:9080/sdoNewsService
>> <component name="FrontEndNewsComponent">
>> <implementation.java class="test.abdera.NewsImpl"/>
>> <service name="NewsClient">
>> <interface.java interface="test.abdera.NewsClient"/>
>> </service>
>> <reference name="newsServiceRef" target="SDONewsServiceComponent/NewsService" >
>> <ts:binding.atom />
>> </reference>
>> </component>
>> <component name="SDONewsServiceComponent">
>> <implementation.java class="test.abdera.NewsServiceImpl"/>
>> <service name="NewsService">
>> <!--<interface.wsdl interface="http://abdera.test/#wsdl.interface(NewsService)"/>-->
>> <interface.java interface="test.abdera.NewsService"/>
>> <ts:binding.atom uri="/sdoNewsService"/>
>> </service>
>> </component>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
Re: [jira] Commented: (TUSCANY-3179) Binding uri is built incorrectly
when the target attribute is used across deployable composites
Posted by Luciano Resende <lu...@gmail.com>.
On Sun, Aug 2, 2009 at 7:41 AM, Kaushik Mukherjee<km...@gmail.com> wrote:
>
> Also, by "a piece of the code that is contributing these composites"
> do you mean the sca-contribution.xml files?
I just want to check how you are contributing these two composites to
the domain. Do you just have one contribution with the two composites
into the domain, and the contributions-xml define two deployables ?
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/