You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by ant elder <an...@gmail.com> on 2006/05/26 14:02:38 UTC

New interactive SCA client

As part of TUSCANY-417 I've committed a patch from Jojo for the start of an
interactive client using JavaScript. I think its quite cool.

You can start it up like this:

C:\Tuscany\SCA\distribution\target\tuscany-dist>java -cp lib\tuscany-
runtime-incubating-M1.jar
org.apache.tuscany.container.rhino.shell.TuscanyShell
Tuscany SCA Shell 0.1, type help() for a list of supported functions.
js>

Then at the "js>" prompt you can enter commands and JavaScript statements
and have them executed interactively. You can invoke SCA components by
loading the module and getting the component, for example:

js> loadModule("samples/sca/helloworld/target/sample-
helloworld-incubating-M1.jar");
js> var hw = getComponent("HelloWorldServiceComponent")
js> hw.getGreetings("petra")
Hello petra
js>

Its still a bit primitive, but this is interesting and we plan to make it
much more user friendly and powerful. Check it out and give us feedback.

   ...ant