aspose file tools
The moose likes Spring and the fly likes Problem calling destroy method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Problem calling destroy method " Watch "Problem calling destroy method " New topic
Author

Problem calling destroy method

Hemant Thard
Ranch Hand

Joined: Dec 23, 2008
Posts: 119
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.

Regards,
Hemant
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é
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem calling destroy method
 
Similar Threads
destroy() for Servlet
DefaultMessageListenerContainer not getting started
Disposable bean's destroy method is not being called ???
manually call unsetEntityContext?
Spring - Connection Problem in some Unit Tests