cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: NotSerializableException ?
Date Sat, 30 Apr 2005 19:30:48 GMT
Sebastien Arbogast wrote:

>>Upon container shutdown, Spring (or maybe the container itself) tries to
>>be a good citizen and serialize the session to disk. Now there are some
>>components/classes in flowscript that are not serializable, hence the
>>session serialization fails and you get this stacktrace.
> 
> 
> And your guess is good. I think my problem comes from a ServiceLocator
> singleton I use to access my Spring services. It's not a class of my
> own, it's automatically generated by AndroMDA and it has a shutdown()
> method which releases resources. It should release that
> NotSerializable transaction manager but the problem is how can I
> automatically call this method after each request or at least just
> before my application is shut down ?
> 

Servlet event listeners [1] are probably what you're looking for. But 
i'm sure there is a "spring" way of doing this as well.


Jorg

[1] http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message