File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Problem calling destroy method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Problem calling destroy method " Watch "Problem calling destroy method " New topic

Problem calling destroy method

Hemant Thard
Ranch Hand

Joined: Dec 23, 2008
Posts: 122
Hi Guys,

i am having difficulty understanding why destroy method is not called in my java standalone application.

i have tried using both : defining destroy-method property in my bean element and using DisposableBean bean. But this doesn't seems to work

can any one provide an explanation for this behavior.

dileep keely
Ranch Hand

Joined: Jun 28, 2010
Posts: 91
i am having difficulty understanding why destroy method is not called

It means that implementation is holding some resources.
close the application context.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

I recently replied to this kind of question at Manning's forum. Check it out.

[My Blog]
All roads lead to JavaRanch
It is sorta covered in the JavaRanch Style Guide.
subject: Problem calling destroy method
Similar Threads
destroy() for Servlet
DefaultMessageListenerContainer not getting started
manually call unsetEntityContext?
Disposable bean's destroy method is not being called ???
Spring - Connection Problem in some Unit Tests