Thank you Simon for your timely and useful help.

On Fri, Aug 12, 2011 at 5:30 PM, Simon Nash <n...@apache.org> wrote:

> Tianlong Wu wrote:
>
>> In fact, I could not even add the node in the sample.
>> I delete a node for example NodeB, and then re-add it.
>> I got the same error as I was trying to add my remote node.
>> And I examined the cloud.composite in the root directory of
>> the domain manager. It turns out that the entry for NodeB has
>> some problems in xmlns:ns2. It is xmlns:ns2="http://tuscany.**
>> apache.org/cloud <http://tuscany.apache.org/cloud>",
>> which should be xmlns:ns2="http://sample/cloud**";.
>> So I think there maybe a bug in the "Add a node" page of domain manager
>> if I was right.
>>
>>  I've followed your instructions and I've been able to reproduce these
> problems.
>
> There is a bug, but it's not in the domain manager.  The bug is in how
> the calculator-distributed sample is set up.  There are two problems:
>
> 1. The target namespace of the composites in the "cloud" directory should
>   be http://tuscany.apache.org/**cloud <http://tuscany.apache.org/cloud>,
> not http://sample.
>
> 2. The "cloud" directory should be directly underneath the directory
>   containing the workspace.xml and cloud.composite files.
>
> These problems don't prevent the sample nodes from running, but they cause
> errors when trying to work with this sample using the domain manager UI.
>
> I will create a JIRA and fix these problems.  If all goes well, the fix
> should be committed later today.
>
> Please also note that all the nodes in the cloud need to be defined in
> a single "cloud" directory.  The domain manager UI does this automatically
> when you add a node to the cloud.  This means that it isn't possible to
> put one node's definition in a separate "cloud" directory under E:\contrib.
> In contrast, the contribution directories can be placed anywhere.
>
>  Simon
>
>  On Wed, Aug 10, 2011 at 7:46 PM, Simon Laws 
> <simonsl...@googlemail.com<mailto:
>> simonslaws@googlemail.**com <simonsl...@googlemail.com>>> wrote:
>>
>>    On Wed, Aug 10, 2011 at 11:01 AM, 吴天龙 <roc...@gmail.com
>>    <mailto:roc...@gmail.com>> wrote:
>>     > Hello guys,
>>     > I am new to tuscany and I am recently working through the user
>>    guide of
>>     > tuscany java 1.6.2.
>>     > And I am stuck when I am trying to create a distributed
>>    application, in
>>     > which I want to deploy multiple nodes.
>>     > I read the article which teaching you how to use the Tuscany
>>    web-based
>>     > domain manager UI to administer an SCA domain.
>>     > But it also concerns about the local nodes. However I want to
>>    deploy some
>>     > remote nodes, which are in a LAN.
>>     > My question is: how is it possible for the Domain Manager to
>>    connect to the
>>     > remote node if the remote computer isn't providing any service to
>> it?
>>     > Is there some program that comes with the tuscany runtime to run
>>    before the
>>     > manager can connect to node?
>>     > I googled but I get noting about this issue.
>>     > Thank you.
>>     >
>>     > --
>>     > *******************************************************
>>     > Tianlong Wu
>>     >
>>     > Computer Science and Technology Dept.
>>     > Harbin Institute of Technology
>>     > NO.92 Xidazhi Street,150001
>>     > Harbin, Heilongjiang Province, P.R.China
>>     >
>>
>>    Hi
>>
>>    IIRC when you have a domain containing remote nodes you have to start
>>    all the nodes manually. You start then with the URL that describes the
>>    node configuration at the domain managers and they will read their
>>    configuration from that URL and start. For example, if you look at the
>>    distributed calculator example [1] then you can see that it doesn't
>>    use the domain manager GUI but does use the domain manager
>>    configuration to allow remote nodes to take part in a distributed
>>    domain.
>>
>>    [1]
>>    http://svn.apache.org/repos/**asf/tuscany/sca-java-1.x/**
>> trunk/samples/calculator-**distributed/<http://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/samples/calculator-distributed/>
>>
>>    Hope that helps
>>
>>    Simon
>>
>>    --
>>    Apache Tuscany committer: tuscany.apache.org <
>> http://tuscany.apache.org>
>>
>>    Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>>    <http://tuscanyinaction.com>
>>
>>
>>
>>
>>
>> --
>> *******************************************************
>> Tianlong Wu
>>
>> Computer Science and Technology Dept.
>> Harbin Institute of Technology
>> NO.92 Xidazhi Street,150001
>> Harbin, Heilongjiang Province, P.R.China
>>
>
>


-- 
*****************************************************
Tianlong Wu

Computer Science and Technology Dept.
Harbin Institute of Technology
NO.92 Xidazhi Street,150001
Harbin, Heilongjiang Province, P.R.China

Reply via email to