Re: Setting unloadDelay within embedded Tomcat

2013-12-10 Thread java developer
"unloadDelay" property is specific to a web application deployed on the the tomcat. A web application is represented by Context type. What you can do is get a reference to the concerned webapp deployed on tomcat and then set the property. You can do something like below Container ctx = tomcat.getH

Setting unloadDelay within embedded Tomcat

2013-12-09 Thread Matthew Westwood-Hill
I am running Tomcat embedded via something like the following code: tomcat = new Tomcat(); tomcat.setBaseDir(DEFAULT_BASE_DIR); tomcat.getService().addConnector(defaultConnector); tomcat.setConnector(defaultConnector); tomcat.init(); tomcat.start(); How do I go about setting the *unloadD