Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

am i using resource injection correctly?

 
Christopher Whu
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am terrible at asking questions... Is it ok/correct to use Bean injection to instead or should i just use the context

ex"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic