Well, that would probably be a cleaner approach. In fact I came across such a suggestion on the web somewhere. But still wanted to explore other alternatives. Looks like it's time I revisited the servlet container features of Tomcat. I was actually viewing Tomcat from a management/monitoring perspective,so didn't quite consider this approach.