Hi guys,
After Exceuting the following line of code,
public void OpenSession() throws DfException
{
getProperty();
dfClient = new DfClient();
dfSessionManager = dfClient.newSessionManager();
IDfLoginInfo loginInfo = new DfLoginInfo();
loginInfo.setUser(username);
loginInfo.setPassword(password);
dfSessionManager.setIdentity(docbase, loginInfo);
dfSession = dfSessionManager.newSession(docbase);
if(dfSession.isConnected())
{
System.out.println("Connection Establish .......");
}
}
public void CloseSession() throws Exception
{
// release session
if (dfSession != null)
{
System.out.println("Connection Release .........");
dfSessionManager.release(dfSession);
}
}
public void retrievefile(String r_object_id)
{
try
{
this.OpenSession();
}
catch(DfException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try
{
IDfSysObject sysObj = (IDfSysObject)
dfSession.getObject(new DfId(r_object_id));
String extension = sysObj.getFormat().getDOSExtension();
// build the path - with full filename
File f =new File(".");
String absolutePath = f.getCanonicalPath();
String path =this.path(absolutePath) + sysObj.getObjectName();
sysObj.checkout();
sysObj.getFile(path);
sysObj.cancelCheckout();
System.out.println("File Checked out.....");
}
catch(DfException ex)
{
ex.printStackTrace();
}
catch(IOException ex)
{
ex.printStackTrace();
}
try
{
this.CloseSession();
}
catch(Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
My weblogic log keep showing this
[DEBUG] 2008-12-12 15:16:54,525 com.documentum.fc.client.impl.session.TicketWatchdog$ExpirationScanner - Scanned 0 ticket custodians, 0 tickets were refreshed
[DEBUG] 2008-12-12 15:18:54,523 com.documentum.fc.client.impl.session.TicketWatchdog$ExpirationScanner - Scanning ticket custodians for expired tickets
[DEBUG] 2008-12-12 15:18:54,525 com.documentum.fc.client.impl.session.TicketWatchdog$ExpirationScanner - Scanned 0 ticket custodians, 0 tickets were refreshed
[DEBUG] 2008-12-12 15:20:54,523 com.documentum.fc.client.impl.session.TicketWatchdog$ExpirationScanner - Scanning ticket custodians for expired tickets
[DEBUG] 2008-12-12 15:20:54,524 com.documentum.fc.client.impl.session.TicketWatchdog$ExpirationScanner - Scanned 0 ticket custodians, 0 tickets were refreshed
What does the above line means.
It seem to me that the client is holding the session and did not release it.
Thanks