On Sun, Jan 20, 2013 at 2:27 PM, Jan Jelschen
<[email protected]>wrote:
> 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
> >
>
>
There is a working version of the store application in tuscany sca 2.x
trunk :
https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/samples/applications/store/
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/