OK, I understand the way remote nodes take part in the domain.
It downloads the config info from the domain manager and run, right?
So before the a node can run, we must add the node configuration in the
cloud page.
But I just cannot do it right. The "Add a node" form requires the following
fields:
Node name, (NodeE)
Node URI, (http://localhost:8200)
Composite namespace, (http://sample)
Composite name, (CalculatorB)
Contribution URI. (http://mycontrib)
and that is all.
I do some experiments with the calculator-distributed sample. I copy the
NodeB folder
in src/main/resources and NodeB.composite in src/main/resources/cloud into a
new folder
named "contrib" to E:\. Then I tried to add a node in the domain manager. I
succeeded in
adding a contribution and a composite but was stuck at the "Add a node"
step.
When I fill out the form and click "add". There is an new entry added in the
list,
but with the "Composite" column marked as "Problem: composite not found"
and "Contribution" column marked as "unknown".
I clicked on the newly added node and the URL is:
http://localhost:9990/composite-source/composite:http://tuscany.apache.org/cloud;http://tuscany.apache.org/cloud;NodeE
while the URL of a normal node is:
http://localhost:9990/composite-source/composite:http://tuscany.apache.org/cloud;http://sample/cloud;NodeB

I think the problem may lie in XML namespace and the URL mapping of jetty
http-server which is used in the domain manager.
I tried to figure out what's wrong but I failed. And the documentation I
could find is very limited.

Thanks.

On Wed, Aug 10, 2011 at 7:46 PM, Simon Laws <simonsl...@googlemail.com>wrote:

> On Wed, Aug 10, 2011 at 11:01 AM, 吴天龙 <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/
>
> Hope that helps
>
> Simon
>
> --
> Apache Tuscany committer: tuscany.apache.org
> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>



-- 
*****************************************************
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