[jcifs] SmbFile delete take too much time
yatin.baraiya
baraiya.yatin at gmail.com
Fri Jul 13 01:48:33 MDT 2012
Hi all,
My web-based j2ee application is based on following technology:
Frame Work:Struts2.0
Server:Tomcat 6.0
Front UI:JSP,JSTL/Struts tag,HTML
For saving/getting any files from the windows web server we have use the
jcifs-1.3.14.jar file.
Database:Microsoft SQL Server 9.00.2047.00
Language:Core java,XML,xslt.
Right now i have upload one folder to the server having 1000
documents,with Using the SmbFile api.
Now i delete this folder from the java ,For that as per the logic , first i
deletes all documents inside the folder and then delete this folder.
below is my java code for deleting the documents
SmbFile removeFile = null;
String remotePath = "c://windows//server";
try
{
removeFile = new SmbFile(remotePath + relativeLocation);
removeFile.delete();
}
catch (SmbException b)
{
continue;
}
while the above process taking too much time to delete the documents, (it
will take time because , it will delete file from the windows web server
[other computer]) is there any other option which improve my delete process
fast.any help regarding this will be appreciate for me.said issue is
critical for me.
Thanks in Advance
Yatin Baraiya
--
View this message in context: http://samba.2283325.n4.nabble.com/SmbFile-delete-take-too-much-time-tp4634540.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.
More information about the jCIFS
mailing list