• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

am i using resource injection correctly?

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic