Is it possible to call an OPC-UA method from the Java API?
Hmm, no, it doesn't look like it.
Not without doing something really janky like trying to execute a script that in turn calls system.opcua.callMethod
or something...
I am open to that if it is the only way...
Can you point me to any examples?
No, I'm not sure that's even a supported thing to do. I just assumed it was possible without looking... but I'll have to dig in a little.
What is your module trying to do? Why does it need to call OPC UA methods?
Calling via ScriptManager is a dead end I think - you wouldn't be able to get or use any of the results.
I think the only possibility will be if your module makes and manages its own OPC UA connections to whatever server you need to call methods on it.