In my app, when a user logs in I populate a user bean (defined in
coldspring.xml as a non-singleton) which contains various bits of info
about this person. I have a service layer object that is injected with
a worker object via bean definitions. The worker object needs to be
able to access the populated user bean.
Is there a way to define my worker object in coldspring.xml so that
the user bean injected will not be an empty, new instance of user, but
the populated one that already exists in this session? Just want to
see if this is possible before I pursue other avenues since it would
definitely be the most efficient way to do it.
Thanks.
Doug
--
You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To post to this group, send email to coldspri...@googlegroups.com.
To unsubscribe from this group, send email to coldspring-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/coldspring-users?hl=en.
cheers,
barneyb
> --
> You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
> To post to this group, send email to coldspri...@googlegroups.com.
> To unsubscribe from this group, send email to coldspring-use...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/coldspring-users?hl=en.
>
>
--
Barney Boisvert
bboi...@gmail.com
http://www.barneyb.com/
Careful, you want to manage timeout and logouts. There is a way to access the session objects stored in cf if you need to
On Mar 5, 2010 12:15 PM, "Doug Boude" <doug...@gmail.com> wrote:
Thanks all for the input, its definitely helping to clear the fog for me. I'm currently exploring the idea of adding the populated user object to my globalConfig bean after login, and defining my worker to have an instance of the globalconfig bean as a property. Since the worker will never be called upon outside of a successful login, i'm thinking this approach should satisfy my need without me having to create a factory or class specifically for retrieving my user from session.
On Fri, Mar 5, 2010 at 12:05 PM, Barney Boisvert <bboi...@gmail.com> wrote: > > The short answer...
--You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group. ...
http://jehiah.cz/archive/extended-operations-on-coldfusion-sessions
I believe you would like to access all live sessions in cf you can use cf internal components to do this, this might help
On Mar 5, 2010 12:22 PM, "Doug Boude" <doug...@gmail.com> wrote:
Hem, can you elaborate on what you mean by "a way to access session objects"? I know you must be talking about something besides the obvious here. :)
On Fri, Mar 5, 2010 at 12:20 PM, Hem Talreja <hemta...@gmail.com> wrote:
> > Careful, you want to manage timeout and logouts. There is a way to access the session objects st...
> You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group...
> To post to this group, send email to coldspri...@googlegroups.com. > To unsubscribe from this...
--You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To post to this group, send email to coldspri...@googlegroups.com. To unsubscribe from this gro...
On Fri, Mar 5, 2010 at 11:49 AM, Doug Boude <doug...@gmail.com> wrote:
> Just to share the solution I went with...
> Since I already had a globalconfig bean
> (ModelGlue.Bean.CommonBeans.SimpleConfig) that I was injecting into other
> defined beans, I simply added a "user" value to that bean within my
> authentication controller after login: a duplicate of my populated
> session.user bean. Globalconfig was already being injected into my worker,
> so I got the needed values out globalconfig's copy of user.
> Now that i said that, i'm thinking maybe i shouldn't have added a duplicate
> of the session.user object but rather just a reference to session.user so
> that any alterations to session.user''s value will always be visible within
> the worker as well. Does that sound right?
>
--
cheers,
barneyb
--