public void passivateObject(Object obj) throws Exception { FTPClient client = (FTPClient) obj; client.setReaderThread(false); }
public void activateObject(Object obj) throws Exception { FTPClient client = (FTPClient) obj; client.setReaderThread(true); }