• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

temporarily disable connections to Tomcat

 
Hans Meierle
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the Tomcat Management app to take specific services (applications) off-line and later restart them.

Bill
 
K. Gil
Ranch Hand
Posts: 75
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic