Tomcat

catalina-restart.sh

A short script to stop Tomcat, and then restart it.

#! /bin/sh
set -eu
 
while [ $(netstat -na | grep -c 8080) -ne 0 ] ; do
        echo "Stopping Catalina..."
        catalina.sh stop
        sleep 3s
done
 
catalina.sh jpda start

Tomcat Context JUnit @Rule

A first draft of a JUnit @Rule that create the test context. This can be used with the Spring context rule for this post to create a complete Spring context for integration tests.

Subscribe to RSS - Tomcat