G
GT
I'm developing a servlet app that I want to put on some cheap shared-
JVM Tomcat hosting. My servlet uses semaphores to wait for a state
update, so I need to know what happens when the servlet is waiting,
and the shared JVM is reset.
Is restarting the JVM the same as just stopping and restarting the
server? If not how would I reset the JVM on my Neteans/Tomcat setup
like my host will do?
I've had a go at stopping the server when the servlet is waiting
(server returns headers, but nothing from my servlet)
and clicking reset in tomcat manager for the appropriate app (servlet
seems completely unaffected, just continues to wait for a notify/
timeout) but I'm not convinced either of these is the JVM reset I'm
looking for.
Any pointers appreciated
JVM Tomcat hosting. My servlet uses semaphores to wait for a state
update, so I need to know what happens when the servlet is waiting,
and the shared JVM is reset.
Is restarting the JVM the same as just stopping and restarting the
server? If not how would I reset the JVM on my Neteans/Tomcat setup
like my host will do?
I've had a go at stopping the server when the servlet is waiting
(server returns headers, but nothing from my servlet)
and clicking reset in tomcat manager for the appropriate app (servlet
seems completely unaffected, just continues to wait for a notify/
timeout) but I'm not convinced either of these is the JVM reset I'm
looking for.
Any pointers appreciated