Until couple weeks ago, this was running, and the duplicated components were
being override.
As for how this is a sample, it's just an app I'm using to debug.

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

On 2/22/07, Jeremy Boynes <[EMAIL PROTECTED]> wrote:

I'm confused on "working" - doesn't this have duplicate names and
hence should not run?

I also struggle to see how this is a sample - what is this showing a
user?

Isn't this more of an itest and if so how about using the itest plugin?
--
Jeremy

On Feb 22, 2007, at 3:09 PM, Luciano Resende wrote:

> I use to have an working application, that had the following scdl
> structure
> :
>
> default.scdl
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
> name="HelloComposite">
>    <include name="Hello1" scdlLocation="hello1.scdl"/>
>    <include name="Hello2" scdlLocation="hello2.scdl"/>
> </composite>
>
> hello1.scdl
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"; name="Hello1">
>    <service name="HelloService">
>        <interface.java interface="
> org.apache.tuscany.services.hello.HelloService"/>
>        <reference>HelloComponent</reference>
>    </service>
>
>    <component name="HelloComponent">
>        <implementation.java class="
> org.apache.tuscany.services.hello.HelloServiceImpl"/>
>        <property name="message">Hello1</property>
>    </component>
> </composite>
>
> hello2.scdl
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"; name="Hello2">
>    <service name="HelloService">
>        <interface.java interface="
> org.apache.tuscany.services.hello.HelloService"/>
>        <reference>HelloComponent</reference>
>    </service>
>
>    <component name="HelloComponent">
>        <implementation.java class="
> org.apache.tuscany.services.hello.HelloServiceImpl"/>
>        <property name="message">Hello2</property>
>    </component>
> </composite>
>
>
> Now, looks like I need to add a <launched> to my scdl to be able to
> run it
> as a standalone app, I was trying the following with not much success.
>
>    <component name="HelloCompositeClient">
>    <launched class="
> org.apache.tuscany.services.hello.client.HelloServiceClient"/>
>        <reference name="HelloService">HelloComponent</reference>
>    </component>
>
>
> Could someone help please ?
> I have the sample app in my sandbox :
> https://svn.apache.org/repos/asf/incubator/tuscany/sandbox/lresende/
> sca/samples/hello.duplicated.components/
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to