Hey Kondal, there's a couple of reason you aren't getting any replies. First, yes, your code is a little long. Another reason may be that your code is an EJB. That's a lot of time for us to invest in getting your code to run, compiling and deploying and so on. Third, your code uses this third party library, com.oroinc.net.ftp, that we'd have to hunt down and install. Your best bet to get help is to write a small stand-alone program which exhibits the problem you are having. If you want to use a third party library, there's probably a user group or mailing list that supports it. You'll get the most help here if you use the standard J2SE API (supports FTP) or popular open source packages like Jakarta Commons Net.