File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

temporarily disable connections to Tomcat

Hans Meierle

Joined: Dec 13, 2012
Posts: 1

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

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

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.
I agree. Here's the link:
subject: temporarily disable connections to Tomcat
It's not a secret anymore!