Problem

How to call module function (client to client)


Solution

Suppose we have the following module "pkg.Test":

public concat(s1, s2){
   return s1 + " " + s2
}

To call the function from client to client:

Object mdl = client.getModule(session, "pkg.Test").getObject();
String sret = mdl.concat("Hello", "World!");

Published in Fri, 10 December 2010 16:16