Problem

How to call module function (client to server)


Solution

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

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

To call the function from client to server:

String sret = client.invokeServerModule(session, "pkg.Test", "concat", new Object[]{"Hello", "World!"});


Published in Fri, 10 December 2010 16:16