Calling a Java service


How to call a my own java service with in another java service? :confused:

Thanks in advance

How do you invoke a built-in service within your Java service?

Same answer applies to your question.,

If your java services are in the same directory you can call them directly with their name and with an iData in parameter.

with a java service named java1
with a java service named java2

inside java1 just call


but not sure it’s a good practice.

Service.doInvoke() which is present in the package
please see the api to use this method doInvoke()

wM pros please correct me if I am wrong

Yes, you are correct, doInvoke() will invoke any service with the given input parameaters, which is published to the server.