On Thu, Mar 10, 2011 at 6:55 PM, James Keats <james.w.ke...@gmail.com> wrote:
> Hi all. Can Scala be used instead of Java in Tuscany? Thanks.

Yes. For an example i've added Scala version of the Java helloworld
which has an SCA component in Scala with a testcase and Maven build.
You should be able to build and run with the following:

svn co 
https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/unreleased/samples/helloworld-scala-contribution/
cd helloworld-scala-contribution
mvn clean install

You can use that in the Tuscany Shell with "mvn tuscany:run" and try
commands like:

invoke HelloworldComponent/Helloworld sayHello James

That works because Scala creates classes which are interoperable with
Java and to SCA/Tuscany it looks just like a Java class and the SCA
component is using <implementation.java>. It might be interesting to
look at if an <implementation.scala> would have any benifits, if
nothing else that might help with making the scala-library dependency
more transparent.

   ...ant

Reply via email to