Using the Java Gateway
The Java Gateway provides an easy way for Ensemble to interoperate with Java components. The Java Gateway can instantiate an external Java object and manipulate it as if it were a native object within Ensemble. The external Java object is represented within Ensemble by a "Wrapper" or "Proxy" class. The proxy object appears and behaves just like any other Ensemble object, but it has the capability to issue method calls out to a Java Virtual Machine (JVM), either locally or remotely over a TCP/IP connection. Any method call on the proxy object triggers the appropriate class method inside the JVM.