aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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?
 
Similar Threads
Please expalin 6 lines of code for me.... (Simple JSF2 Integration with spring)
creating a table component dynamically
Log4J created two log files but should have only done one
Passing Params
Injection problem - not quite sure if this is something i should be using injection for