File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring Bean Life Cycle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Bean Life Cycle" Watch "Spring Bean Life Cycle" New topic
Author

Spring Bean Life Cycle

vivek dhiman
Ranch Hand

Joined: Aug 05, 2011
Posts: 111

Hi

I was trying to check the the life cycle of Spring Bean, but stuck at the point where destroy function didn't execute.Below is my code, please check where i am missing something.

Thanks .

Bean File

Configuration File

Output is :
Surendra Kumar
Ranch Hand

Joined: Jul 04, 2006
Posts: 235
destroy is called only when the Spring context is closing.
Please see this on the usage.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Bean Life Cycle
 
Similar Threads
error in a simple hibernate application
Problem with "Spring in Action" Book First Example
using a query() with RowMapper.
class path resource [spring xml file] cannot be opened
Problem calling destroy method