RPC Works great, thanks for the advice, really powerful (especially the command stuff!)
We’re using this for a health check / monitoring REST service (and tying it into a dashboard).
Leaving this here for help for others:
Broker broker = new Broker("mvsimda:18024", "JavaCIS");
try {
BrokerService bs = new BrokerService(broker, "SAG/ETBCIS/INFO");
InfoServiceBroker is = new InfoServiceBroker(bs);
is.getInfo();
Example excerpt output of is.getRecords() (plenty more info for that specific):
Total number of objects: >1<
Current number of objects: >1<
Maximal length of class name: >0<
Maximal length of server name: >0<
Maximal length of service name: >0<
Maximal length of user Id: >0<
Maximal length of token: >0<
Maximal length of topic name: >0<
Request timestamp in seconds: >1572245485<, >Mon Oct 28 06:51:25 AEST 2019<
ErrorCode: >00000000<
ErrorText: >Successful response<
LengthOfLongestRPCLibrary: >0<
LengthOfLongestRPCProgram: >0<
#EntireX#Mainframe-Integration#webMethods