To match the recent C++ Python container I've committed the start of a
Python container for the Java runtime:
http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/ant/container.python/

One reason for this is I thought it would be interesting to see how easy it
would be to move a composite between the Java and C++ runtimes (do others
think that would be useful?).
Right now it started as a copy of the existing JavaScript container so there
are some differences between the Java and C++ python use:

- Java uses a different namespace for implementation.python, C++ uses the
SCA namespace.
- Java needs the fully qualified module name, C++ uses the unqualified one.
- Java needs the .py file suffix, C++ doesn't.
- The .componentType side file in Java uses inteface.java and C++ uses
interface.cpp, so that wont work in the other runtime. Maybe using
interface.wsdl would get around that, or need to implement those other
interface languages in each runtime, or perhaps have some sort of untyped
dynamic interface as the script languages are dynamic.

Java:
http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/
C++:
http://svn.apache.org/repos/asf/incubator/tuscany/cpp/sca/samples/Calculator/CalculatorComposite/CalculatorComposite.composite

  ...ant

Reply via email to