Tags

links:
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-factory-shutdown
http://stackoverflow.com/questions/2295974/proper-way-of-shutdown-a-spring-context-in-j2se

summary:
– cleanup upon jvm shutdown using:
ctx.registerShutdownHook();
– this will call close();
– not too often mentioned for some reason

Advertisements