There’s no public API to read the global variables. Therefore, in my personal opinion, your wrapper solution is the proper way to do it. Nevertheless, if you must read the global variable from the Java service itself, you can try something like:
import com.wm.app.b2b.server.globalvariables.GlobalVariablesManager;
.
.
String value = GlobalVariablesManager.getInstance().getGlobalVariableValue(“”).getValue();
Percio
#webMethods-General#webMethods#Integration-Server-and-ESB