On Mon, Dec 30, 2002 at 06:57:17PM +0100, Rickard �berg wrote: > Philipp Meier wrote:
> >Can't we use a proxy for this? Actions should at least be safe to reuse if > >programmed carefully. Or am I wrong here? > > This has been discussed before, but no, actions cannot be safely reused. > The basic problem is reinitializing actions to a safe state, which is a > nightmare in the general case. It is way easier and better to either use > stateless sessions (a la Struts) or simply instantiate them each time. > If you do it the Struts way, then you need to introduce form beans, > which cannot be safely reused either, so you're back at square one. Ok, forget what I was saying. How will we then implement the interceptors? If I got it right, we should avoid instantiation of many objects. So the interceptors should not be intantiated for every execution? Perhaps the interceptors can be reused but this leads to the resuse problem you pointed out. I'm a little stuck, here. -billy. -- Meisterbohne S�flinger Stra�e 100 Tel: +49-731-399 499-0 eL�sungen 89077 Ulm Fax: +49-731-399 499-9
msg00891/pgp00000.pgp
Description: PGP signature
