I'm sorry for your time waiting for help.

I don't like your approach since you didn't use Hivemind capabilities and
the result doesn't look simple. My approach is something like this:
1. Add RegistryShutdownListener into SpringBeanFactoryHolderImpl
2. Configure event listener in hivemodule.xml

I've post it to wiki, please try it and tell me if there is any error.

By the way, I will create Jar for Tapestry31, Spring integration in
sourceforge.net. You can expect that in few days.

Regards,
Nanda Firdausi Muhammad 

> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Hugo Palma
> Sent: 13 April 2005 11:17
> To: [email protected]
> Subject: Re: 3.1 Spring integration not releasing resources 
> on shutdown
> 
> After much digging i've found a solution.
> The solution i've come up with changes the way that spring is 
> integrated with tapestry like described in the wiki. My 
> solution is this:
> 
> The SpringBeanFactoryHolder implementation:
> 
> public class DIFSpringBeanFactoryHolderImpl extends 
> SpringBeanFactoryHolderImpl {
>       private ServletContext _context;
>       private ShutdownCoordinator _shutdownCoordinator;
>       private RegistryShutdownListener _shutdownListener;
> 
>       public void init()
>       {
>        
> ((DIFRegistryShutdownListener)getShutdownListener()).setBeanFa
ctory(getBeanFactory());
>        
> getShutdownCoordinator().addRegistryShutdownListener(getShutdo
> wnListener());
>       }
> 
>       @Override
>       public BeanFactory getBeanFactory()
>       {
>               if (super.getBeanFactory() == null)
>               {
>                
> super.setBeanFactory(WebApplicationContextUtils.getRequiredWeb
> ApplicationContext(getContext()));
>               }
>               return super.getBeanFactory();
>       }

-CUT-



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to