Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. 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