[jcifs] About disconnection.

Michael B Allen mba2000 at ioplex.com
Tue Aug 29 17:43:12 GMT 2006


On Tue, 29 Aug 2006 16:00:10 +0900
tetsu.soh at nts.ricoh.co.jp wrote:

> Hi everyone,
> 
> I was reading JCIFS source code and found that we can't do disconnection
> from outside of package.
> 
> The disconnection() method in Transport class is only called when exception
> is catched.
> 
> Does it mean that If I create a Java App and connect to 10 different SMB
> Server, the application will keep 10 socket connection alive?
> 
> How can I close the connection without shutdown Java App?

If there is no activity on the socket for jcifs.smb.client.soTimeout
milliseconds, the socket read with throw a timeout exception and close
the socket.

Mike

-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/


More information about the jcifs mailing list