• 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

Security and EJB

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
In my EJB I can specify the method execution permission for a particular role. Suppose i have a servlet client which access the EJB, and my servlet validates an user against my database specific to my application. When the user is authenticated, how will the Servlet know which role to assign the authenticated user? Is it the same role, i need to specify in my EJB deployment descriptor and how does it get propagated to the EJB layer ? So that the authenticated user will be able to execute the EJB method.
Please help
Hari
(I have posted this message on J2EE/EJB also, so that i can get quick answer,please excuse me)
 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IMHO
Your servlet makes a connection to the EJB container. Often this is a JNDI logon, I believe.
Do you trust the servlet or do you trust the client ( i.e. clients User ID )?
If you trust the servlet ...
If you are going down to the user id level, you'll have to pass that as a parameter. EJB has the tools you need from there.
reply
    Bookmark Topic Watch Topic
  • New Topic