cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

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"

vbabu-4
4-Participant

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"

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

0 REPLIES 0
Top Tags