Problem

How to call module function (server to server)


Solution

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

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

To call the function from server to server:

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

Published in Fri, 10 December 2010 16:16