Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hi,
I am trying to create a session and to keep session alive using setAutoReconnect but I get "...Problem starting API session: undefined: setAutoReconnect is not a function". Please Correct me if i am wrong?
iPoint = Packages.com.mks.api.IntegrationPointFactory.getInstance().createIntegrationPoint(bd_imhostname, bd_import,4,12);
apiJava = Packages.java.io.IOException;
session = iPoint.createSession(bd_user, bd_password);
cmdRunner = session.createCmdRunner();
cmdRunner.setAutoReconnect(true);
cmdRunner.setDefaultHostname(bd_sihostname);
cmdRunner.setDefaultPort(bd_siport);
cmdRunner.setDefaultUsername(bd_user);
cmdRunner.setDefaultPassword(bd_password);
Kindly help me to keep the session alive still command complete.
Thanks in advance