Re: Injecting session-scoped Spring beans

2011-11-18 Thread Michael Prescott
In the end I settled on a singleton wrapper for the session-scoped bean. Not as clean as I'd have liked, but it does the trick and my time budget's run out. :-) Yes, I wasn't sure if Spring or Tapestry-Spring was doing the weird thing there, but it would be really nice if Tapestry would use the s

Re: Injecting session-scoped Spring beans

2011-11-18 Thread Jonathan Barker
There is a note on http://tapestry.apache.org/integrating-with-spring-framework.html that says that "you should consider the non-singleton beans to be not injectable. Instead, inject the ApplicationContext service and obtain the non-singleton beans as needed." As for "seeing" multiple beans of the

Re: Injecting session-scoped Spring beans

2011-11-18 Thread Thiago H. de Paula Figueiredo
On Fri, 18 Nov 2011 14:57:21 -0200, Michael Prescott wrote: I have a number of managed-by-Spring command objects that need to be injected with the same (or an equivalent) state holder, otherwise yes, I'd do exactly that. And by avoid, I'm not avoiding it like the plague, I just liked the

Re: Injecting session-scoped Spring beans

2011-11-18 Thread Michael Prescott
I have a number of managed-by-Spring command objects that need to be injected with the same (or an equivalent) state holder, otherwise yes, I'd do exactly that. And by avoid, I'm not avoiding it like the plague, I just liked the brevity of @Inject MyBean and it seemed within reach. On 18 November

Re: Injecting session-scoped Spring beans

2011-11-18 Thread Thiago H. de Paula Figueiredo
On Fri, 18 Nov 2011 12:51:45 -0200, Michael Prescott wrote: I was excited about the possibility of injecting a session-scoped Spring bean into a dispatcher (since this saves mucking around with ApplicationStateManager) Why avoiding ApplicationStateManager? Quite easy to use and you avoid

Injecting session-scoped Spring beans

2011-11-18 Thread Michael Prescott
I was excited about the possibility of injecting a session-scoped Spring bean into a dispatcher (since this saves mucking around with ApplicationStateManager) - but (of course!) I've run into a slight problem. For whatever reason, this syntax: ..creates two visible beans of type MyBean in t