Forum Discussion

Vinay_12452's avatar
Vinay_12452
Icon for Nimbostratus rankNimbostratus
Feb 12, 2013

Closing iControl session using java

Hi

 

iControl.Interfaces iCtrlIntf = new iControl.Interfaces();

 

boolean bInit = iCtrlIntf.initialize(ipAddress, port, username, password);

 

if (bInit) {

 

long sessionIdentifier = iCtrlIntf.getSystemSession().get_session_identifier();

 

}

 

I am using above code to create an iControl Session. now i have reached the maximum limit of sessions and getting the below exception. Please help me how to close the session after use.

 

Exception caught in System::urn:iControl:System/Session::get_session_identifier()There are too many existing user sessions. Please try later.

 

Thanks,

 

Vinay.

 

2 Replies

  • I'm very curious to what the answer is to this. I wish we could manually close these user sessions; although, it doesn't look like that is possible. Do you just set the timeout low and let it timeout? Do they automatically get closed on submit_transaction/rollback_transaction? Input greatly appreciated!
  • Hi Ryan,

     

    As what I have observed both pratically and going through the documentation for iControl, the session does not get closed either by submitTransaction or RollBackTransaction. It has a timeout value. Now supposing that the timeout value is 300sec, if the session is used within this 300 secs after its last used time, the session remains in active mode. The session expires once this timeout value is passed and the session is idel through out this time.