aspose file tools*
The moose likes Tomcat and the fly likes temporarily disable connections to Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "temporarily disable connections to Tomcat" Watch "temporarily disable connections to Tomcat" New topic
Author

temporarily disable connections to Tomcat

Hans Meierle
Greenhorn

Joined: Dec 13, 2012
Posts: 1
Hello,

for backup reasons, I want to disable user connections to my tomcat server.

Does anybody know how to configure tomcat to deny connections for a specific time?

Thank you!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
You can use the Tomcat Management app to take specific services (applications) off-line and later restart them.

Bill
K. Gil
Ranch Hand

Joined: Apr 29, 2011
Posts: 75

and if you don't want to put your app down while taking backups, you can always modify linux shell script that does the backup, so it use iptables and cut off all connections to your listen port, do backup, and remove temp iptables block rule.
 
 
subject: temporarily disable connections to Tomcat