File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Can start and stop tomcat through FTP?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Can start and stop tomcat through FTP??" Watch "Can start and stop tomcat through FTP??" New topic

Can start and stop tomcat through FTP??

Rex Rock
Ranch Hand

Joined: Jun 25, 2001
Posts: 82
All files relating to our website are placed in /home. We also have a directory called /developement. I typically upload my files to /development, and after testing (http://ourwebsite ortno/development ) they are moved to /home. I do not have direct access to /home however I have ftp access to /development, so I typically ftp my latest files to /development.
The /development directory also has the database file. Sometimes, I modify my tables and would like to ftp the new database file
to /development, but because tomcat is running, it won't let me ftp the new database, and windows would complain that
some other program is using the database, so I can't overwrite it. Tomcat is installed under the home directory.

I'm now wondering if there is anywhere to stop tomcat through ftp, and start it again. If thats possible, then I can stop tomcat,
upload my new database file, and start tomcat again.
ersin eser
Ranch Hand

Joined: Feb 22, 2001
Posts: 1072
How about using listeners that are declared n web.xml and thru them letting your app know that you have an intention to change your db and close your connection and release the pool objects etc then do whatever you want and use another listener to re establish the conn and pool ?
{ Don't think that I have done this , Actually this is just a thing that came to my mind, it is also 1:00 am ... }
I agree. Here's the link:
subject: Can start and stop tomcat through FTP??
It's not a secret anymore!