It is probably more interesting if we evolve this function toward the Console (or Component Test Environment) of an SCA domain. It could be a similar positioning as Eclipse Web Service Explorer for Web Services or OSGi console for OSGi runtime.

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Monday, November 16, 2009 2:54 AM
To: <[email protected]>
Subject: Interactive SCA Client

I've started bringing up the old interactive client we had contributed
once (in May 2006!), and while its still quite rough it does actually
work now. It provides a simple interactive command line console where
you can use JavaScript to query and invoke services running elsewhere
in the Tuscany distributed domain. As an example, with one Node
already started running the eightball demo this is how to use the
client:

java -Djava.ext.dirs=..\..\..\eightball-demo\eightball\target -jar target\tuscany-base-2.0-SNAPSHOT.jar client

Tuscany SCA Shell 0.1, type help() for a list of supported functions.
js> listServices()
EightBallComponent#service-binding(EightBall/EightBall)
js> s=getService("EightBallComponent")
demo.EightBall
  java.lang.String askQuestion(java.lang.String)
js> s.askQuestion("Does it work?");
Kann jetzt nicht vorhergesagt werden.
js>

Comments or suggestions for enhancements welcome...

...ant

Reply via email to