By default Spring beans are singletons, so are beans destroyed if application is shut-down? Or is there any bean time-out?
Asked
Active
Viewed 512 times
3
-
2Have you read this question? http://stackoverflow.com/questions/4460384/when-is-a-spring-beans-destroy-method-called – reto Jan 21 '15 at 08:20
-
the beans will destroy when the appContext is destroyed only. am I right? – Sun Jan 21 '15 at 08:33
-
2Yes, singleton scoped beans will be destroyed when the application context is shutdown. – reto Jan 21 '15 at 08:36