Tianlong Wu wrote:
Thank you Simon,
I have checked out the fixed sample and run a test.
I works! But I noticed that there's still some problems
with it: the node config composite generated by the
domain manager designates the service binding to be
multiple protocols(ws, jsonrpc, sca, and so on) by default.
And the "Add a node" page doesn't provide any fields to
configure the binding. If I want to specify the binding, I have
to manually edit the composite file.
>
Yes, that's a limitation of the domain manager UI.  I'm willing
to live with the workaround of editing the files.  If you'd like
to contribute some code to make it possible to change the binding
protocol settings from the UI, that would be very welcome.

And I also noticed that in tuscany 2.0, there is no such thing
as domain manager. So how do we manage a domain in
tuscany 2.0? I couldn't find anything in the documentation.

See [1] for a description.

  Simon

[1] 
http://tuscany.apache.org/documentation-2x/sca-java-runtime-overview.html#SCAJavaRuntimeOverview-SCADomainandNodes

Thanks.

On Fri, Aug 12, 2011 at 7:15 PM, Simon Nash <n...@apache.org <mailto:n...@apache.org>> wrote:

    Tianlong Wu wrote:

        Thank you Simon for your timely and useful help.

    You're very welcome.  The fix is now committed to the 1.x trunk.
    To run the domain manager UI on this sample, you need to do the
    following:

    1. Check out the fixed sample from the 1.x trunk.
    2. Build the sample
    3. Open a command prompt and change directory to
    samples/calculator-distributed
    4. Launch the domain manager with a single argument
    "target/classes".  This
      tells the domain manager where to look for its configuration
    files.  The
      command I'm using to launch the domain manager is:
       java -jar
    
../../modules/node-launcher/__target/tuscany-node-launcher-__1.7-SNAPSHOT.jar
    domain target/classes
      Before running this command, you need to set the TUSCANY_HOME
    environment variable
      to a directory containing the Tuscany binary distribution.

     Simon

        On Fri, Aug 12, 2011 at 5:30 PM, Simon Nash <n...@apache.org
        <mailto:n...@apache.org> <mailto:n...@apache.org
        <mailto: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.__ap__ache.org/cloud
        <http://apache.org/cloud>
               <http://tuscany.apache.org/__cloud
        <http://tuscany.apache.org/cloud>>",
               which should be xmlns:ns2="http://sample/__cloud__
        <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>
           <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:simonsl...@googlemail.com>
        <mailto:simonslaws@googlemail.__com
        <mailto:simonsl...@googlemail.com>>
               <mailto:simonslaws@googlemail.
        <mailto:simonslaws@googlemail.>____com

               <mailto:simonslaws@googlemail.__com
        <mailto:simonsl...@googlemail.com>>>> wrote:

                  On Wed, Aug 10, 2011 at 11:01 AM, 吴天龙
        <roc...@gmail.com <mailto:roc...@gmail.com>
               <mailto:roc...@gmail.com <mailto:roc...@gmail.com>>
                  <mailto:roc...@gmail.com <mailto:roc...@gmail.com>
        <mailto: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/>
<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>
               <http://tuscany.apache.org> <http://tuscany.apache.org>


                  Co-author of a book about Tuscany and SCA:
               tuscanyinaction.com <http://tuscanyinaction.com>
        <http://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





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