snip....

>
> Cool thats really helpful. Ok so if we can have a Tomcat TuscanyHost (i.e.
> an extension of org.apache.catalina.core.StandardHost not related to the
> Tuscany host stuff)  that will get its addChild method called for each
> webapp and we can get a File to the root of the webbapp so call
> nodeFactory.createSCANode with that and treat each webapp as a seperate
> contribution which seems reasonable. That would give us a node per webapp
> which i'm not sure is good or bad till theres some answers to the "what is
> a
> node" question.


sounds ok to me.


>
>
> How do nodes talk to each other or become part of a bigger domain? Theres
> nothing in SCANode2Factory.newInstance().createSCANode or node.start that
> mentions anything about any domain?
>
>   ...ant
>

They don't talk to each other, other other than at the application level. If
you want to have a node read it's configuration from the domain you can use
the
following factory method.

public abstract SCANode2 createSCANode(String configurationURI);

and provide the URI of the configuration that you want it to read. e.g.

node = factory.createSCANode("http://localhost:9990/node-image/NodeA";);

This URL is provided by the domain and is tailored specifically to provide
just the right configuration (the list of composite and contribution URLs)
for the node in question. NodeA in this case.

Simon

Reply via email to