Re: Struts 2 Spring IOC problem

2007-07-15 Thread alex xander
i don't put that code in struts.xml, i put in application-context.xml my problem is, i need to destroy my bean, but in spring reference that i read, the prototype bean is cannot use destroy-method="destroy" syntax to destroy it. can anyone give me some solution. thx chris for your answer Chris P

Re: Struts 2 Spring IOC problem

2007-07-13 Thread Chris Pratt
I'm definitely no expert, but I think you're mixing new syntax with old. If I remember correctly singleton="false" was replaced with scope="prototype". So maybe it was treating your beans as singletons, which is why they were never getting destroyed. (*Chris*) On 7/13/07, alex xander <[EMAIL P

Struts 2 Spring IOC problem

2007-07-13 Thread alex xander
i have some problem with Spring IOC i use struts 2.x, hibernate 3.x and spring 2.x my problem is the destroy-method in my class don't respon anything it's looks like spring doesn't recognize my destroy method i already implement org.springframework.beans.factory.DisposableB