tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Problem with session activation after restart
Date Fri, 16 Nov 2007 21:42:32 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jacek,

Jacek Olszak wrote:
> I try to describe my situation. I have a couple of session beans which
> have transient properties. Those properties are in fact references to
> Spring application beans. When the session is activated after restart
> I want to inject spring beans again into restored session beans.
> Unfortunately Spring's ContextLoaderListener has not been executed
> before, so the Spring Context is not yet created (so I can't get
> application beans from it).

Who not do lazy restoration? Leave a marker in the session that says
"object X goes here" and then load "object X" when you /need/ it,
instead of right when the session is re-loaded.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPg7I9CaO5/Lv0PARAt/DAJoCySOk9fR9toM/jJxnZcxbd2TnbACfRWcn
vRLxIftL4AxLTuLW9wZx/qE=
=5ht8
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message