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 Problem calling destroy method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
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: 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.

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: 14687
    
  16

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