Dear All,
I have written a simple DFC docbase session code in my eclipse, as shown below....
public class DocbaseConnection {
public static void main(String[] args) throws Exception {
IDfSessionManager sMgr = null;
IDfSession session = null;
try {
IDfClientX clientx = new DfClientX();
IDfClient client = clientx.getLocalClient();
DfLoginInfo loginInfoObj = new DfLoginInfo();
loginInfoObj.setUser("test");
loginInfoObj.setPassword("test");
sMgr = client.newSessionManager();
sMgr.setIdentity("docbase", loginInfoObj);
session=sMgr.newSession("docbase");
System.out.println("docbase is connected successfully "+session);
} catch( Throwable e ) {
// catch exception here- see the code for Exception Handling
}
finally {
System.out.println("docbase is not disconnected "+session);
sMgr.release(session);
System.out.println("Still now session is connected "+session); // Here I am able to get the session again and again.
}
}
}
In the above code I am not able to release the docbase session. Could you please help me , why I am not able to release session.