C:\scripting>start rmiregistry
C:\scripting>java -Dname=toto -jar biocep-core.jar
jarfile:file:/C:/scripting/biocep-core.jar
2008-05-07 18:12:04.532::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2008-05-07 18:12:04.641::INFO: jetty-6.1.x
2008-05-07 18:12:05.751::INFO: Started SocketConnector@0.0.0.0:1129
(1) intermediate process id:2156
(2) r process id:2156
C:\scripting>set CLASSPATH=biocep-core.jar;%CLASSPATH%
C:\scripting>jython
*sys-package-mgr*: processing modified jar, 'C:\scripting\biocep-core.jar'
Jython 2.2.1 on java1.5.0_14
Type "copyright", "credits" or "license" for more information.
>>> import java.rmi.registry.LocateRegistry
>>> r=java.rmi.registry.LocateRegistry.getRegistry().lookup("toto")
>>> print r.callAndConvert("paste", ["AAA","BBB"])
AAA BBB
>>> ^Z
C:\scripting>