Hi
No luck in what way? I.e. did you get the same error?
How you start a node shouldn't affect your ability to retrieve WSDL
for a service using the web service binding.
Re. the how to start a node question, we've started to move away from
the SCADomain interface, although some of our samples still use it and
it still works. We've put an explicit node interface in place. This
differentiates the node from the domain in which it runs. The model is
that you always start a node and if you provide explicit contribution
location information when you start it it runs stand alone. If you
configure it using the URL of the domain manager then the node runs as
part of a distributed domain.
How you start the node depends on what environment you're running in.
For example, with the 1.x code
>From a java program as a stand alone node, i.e. with a local
configuration that you know the location of...
SCANodeFactory factory = SCANodeFactory.newInstance();
node = factory.createSCANode("jmsbytes/helloworld.composite",
new
SCAContribution("test", "./target/classes"));
HelloWorldReference helloWorldService =
((SCAClient)node).getService(HelloWorldReference.class,
"HelloWorldReferenceComponent");
From [1]
>From a java program as a stand alone node, if you want to use the
classloader to find a composite file and use that location as the SCA
contribution you can do...
SCANodeFactory factory = SCANodeFactory.newInstance();
node = factory.createSCANodeFromClassLoader("Calculator.composite",
getClass().getClassLoader());
node.start();
calculatorService =
((SCAClient)node).getService(CalculatorService.class,
"CalculatorServiceComponent");
from [2]
>From a java program with configuration provided by the domain manager
you can do...
SCANodeFactory factory = SCANodeFactory.newInstance();
node =
factory.createSCANodeFromURL(String)("http://localhost:9990/node-config/NodeA");
node.start();
calculatorService =
((SCAClient)node).getService(CalculatorService.class,
"CalculatorServiceComponent");
as an alternative to this last one you could use the node
launcher programmatically to set the node running
NodeLauncher.main(new String[]
{"http://localhost:9990/node-config/StoreNode"});
from [3]
If you want to run from the command line without writing Java code you
can use the launcher directly, something like the following (I can't
lay my hands on anywhere where we give an example of this. We need to
add one)
java -classpath tuscany-sca-all-1.5.jar
org.apache.tuscany.sca.node.launcher.NodeLauncher
mycomposite.composite ./path/to/my/contribution
Hope that helps
Simon
[1]
http://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesTestCase.java
[2]
http://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/samples/calculator/src/test/java/calculator/CalculatorTestCase.java
[3]
http://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/tutorials/store/domain/launch/LaunchStoreNode.java