Hi,
there is no domain manager in Tuscany 2.x anymore. I think you need to look at
classes org.apache.tuscany.sca.Node and TuscanyRuntime, instead. This is from a
simple test app I wrote some months ago and just dug up:
TuscanyRuntime scaRuntime = TuscanyRuntime.newInstance();
Node node = scaRuntime.createNode();
out.println("Domain Composite: " +
node.getDomainComposite().getName());
out.println("Domain Name: " + node.getDomainName());
out.println("Domain URI: " + node.getDomainURI());
out.println("Local Node Name: " + node.getLocalNodeName());
node.installContribution(args[0]);
(args[0] contains the path to a contribution jar file)
Maybe this will get you started…
-JJ
On Jan 20, 2013, at 22:55 , Luiz Gustavo wrote:
> Hi!
>
>
> I'm trying to follow a tutorial of Tuscany
> (http://tuscany.apache.org/getting-started-with-tuscany.html) and I'm getting
> problems 'cause the code seems to be outdated for 2.x version:
>
>
> public class Launch {
> public static void main(String[] args) throws Exception {
> System.out.println("Starting ...");
> SCADomain scaDomain = SCADomain.newInstance("store.composite");
> System.out.println("store.composite ready for big business !!!");
> System.in.read();
> System.out.println("Stopping ...");
> scaDomain.close();
> System.out.println();
> }
> }
>
> SCADomain can not be founf anymore. How can I do the same using the new API?
>
> ps: I could not find the API for both 1.x and 2.x versions.
>
> Best regards,
>
> Luiz Gustavo S. de Souza
>
> http://luizgustavoss.wordpress.com
>
--
Jan Jelschen
Carl von Ossietzky University
Department for Computer Science
Software Engineering
26111 Oldenburg
Room: A02 2-218a
Tel: +49 (0)441 798-5173
E-Mail: [email protected]