...
A node runs an SCA assembly described by one or more composite files. A node runs in a single JVM. You can start more than one node in a single JVM if you need to but we only tend to do this for testing purposes. In the first section of the user guide we built a calculator sample that included Calculator, Add, Subtract, Multiply and Divide components included in a single composite.
The composite was run using the following API;
...
From the calculator sample you can see that the wires between the component references and services, formed by adding a target component name to a reference, are resolved inside an SCA domain comprising a single node.
For example, this section of the calculator composite file shows how the CalcuatorServiceComponent targets the AddServiceComponent.
...
is still be able to find the add component running on a separate node.
So a distributed SCA domain can consist of more than one node/composite and wires can run between components defined in the separate composites.
...
Once the domain manager is running you can get to the web interface of the default domain by pointing your browser at http://localhost:9990/ui. This provides a number of different pages allowing you to
...
Code Block |
---|
SCANode2 node = SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/NodeA"); |
The URL http://localhost:9990/node-config/NodeA is the URL of the atom feed that the domain manager provides.
...