This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes cant connect after disconnected from ftp server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "cant connect after disconnected from ftp server " Watch "cant connect after disconnected from ftp server " New topic
Author

cant connect after disconnected from ftp server

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 688

i have develop an ftp app , but there is one problem
after being idle for some minutes the ftp server disconnects the client ...fine
but that ftp app has a jtree which fires treeselectionlistener 's value changed method in that method i have done something which is below


so when the server disconnects my app , and when i m selecting any tree , because of my above few statements my app should reconnect with the server , right ?
but it is throwing an exception , saying connection has been aborted
or something like software caused connection abort

what i want is whenever ftp server disconnects my app
my app should able to reconnect to the server without even restarting my app
can i do this , offcourse yes , but how ??


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cant connect after disconnected from ftp server
 
Similar Threads
SQL not working
how to delete an object from heap ?
socket not accepting data 2nd time
threads concurrency problem
how to get the last modified time of a text file