This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android 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: 101
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: 14688

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

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Problem calling destroy method
It's not a secret anymore!