The Samba-Bugzilla – Attachment 1413 Details for
Bug 3063
jCIFS does not always recover from server errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test code using jakarta commons-vfs
Test.java (text/x-java), 965 bytes, created by
Robert Marcano
on 2005-09-05 07:06:53 UTC
(
hide
)
Description:
Test code using jakarta commons-vfs
Filename:
MIME Type:
Creator:
Robert Marcano
Created:
2005-09-05 07:06:53 UTC
Size:
965 bytes
patch
obsolete
>import org.apache.commons.vfs.FileObject; >import org.apache.commons.vfs.FileSystemException; >import org.apache.commons.vfs.FileSystemManager; >import org.apache.commons.vfs.VFS; > >public class Test { > /** > * @param args > */ > public static void main(String[] args) { > FileObject file = null; > > while (true) { > try { > Thread.sleep(20000); > > FileSystemManager fsManager = VFS.getManager(); > file = fsManager > .resolveFile("smb://test:test@192.168.1.186/test/" > + System.currentTimeMillis() + ".txt"); > file.createFile(); > > } catch (Exception e) { > e.printStackTrace(); > } finally { > try { > if (file != null) > file.close(); > } catch (FileSystemException e) { > } > } > } > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3063
: 1413 |
1414