3

By default Spring beans are singletons, so are beans destroyed if application is shut-down? Or is there any bean time-out?

halfer
  • 19,824
  • 17
  • 99
  • 186
Sun
  • 3,444
  • 7
  • 53
  • 83
  • 2
    Have 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
  • 2
    Yes, singleton scoped beans will be destroyed when the application context is shutdown. – reto Jan 21 '15 at 08:36

0 Answers0