my dog learned polymorphism*
The moose likes Spring and the fly likes am i using resource injection correctly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "am i using resource injection correctly?" Watch "am i using resource injection correctly?" New topic
Author

am i using resource injection correctly?

Christopher Whu
Ranch Hand

Joined: Sep 03, 2008
Posts: 80
I have a spring authentication bean, i also have a bean that lets a system user edit his account info. In order for the user to edit his info i have to know his email address. in the old days i would have just set a session variable


I have been trying to use more J2ee technologies, i have loved everyone i have tried (this forum got me using JSF and i love it).

In order to solve the above issue i am injecting SessionMinder bean (which will allow me to store the email address i need) into my auth bean. Both beans are below. My question is, is this the correct way to use injections... if my way stinks, how would you do this. Thank your in advance...



my security bean

Christopher Whu
Ranch Hand

Joined: Sep 03, 2008
Posts: 80
I am terrible at asking questions... Is it ok/correct to use Bean injection to instead or should i just use the context

ex"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: am i using resource injection correctly?