cancel
Showing results for 
Search instead for 
Did you mean: 

JLAN examples

pxavier76
Champ in-the-making
Champ in-the-making
I would like to know where i can obtain working samples that illustrate how the JLAN client API's can used.
1 REPLY 1

pxavier76
Champ in-the-making
Champ in-the-making
Since there was no reply, i attempted to try it out coding out the first example listed in the JLAN client Programmer's guide in Pg 13. This example
is supposed to be a sample for connecting to remote shares:


public calss SessionTemplate{
  try {
   
    PCShare share = new PCShare("\\\\server\sahre%user:password");
    DiskSession disk = SessionFactory.OpenDisk(share);
   
    //perform some disk operations 

   disk.CloseSession();
 
   }
   catch(Exception ex){
    ex.printStackTrace();
   }

}

I can't seem to locate both the DiskSession and SessionFactory classes. Have they been deprecated?  I have tried to import the entire JLAN directory, i.e. org.alfresco.jlan.*  but to no avail.  Does anyone know how to proceed from here ?