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 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Can start and stop tomcat through FTP??" Watch "Can start and stop tomcat through FTP??" New topic
Author

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 ... }
 
wood burning stoves
 
subject: Can start and stop tomcat through FTP??
 
Similar Threads
symbolic link directory within webapp directory
It's before, but I'll ask again... Multiple File Upload
How to upload a class to the webapp ?
Multiple .War files on Tomcat container
uploading files in JSP