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

Startup Servlet invoking a secure EJB in JBoss

 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a startup servlet, in Jboss, which is invoking an secured EJB. I am able to invoke the method the bean without any exceptions.

My question is, what role does the startup servlet use for invoking the bean, since no user has yet logged in? How is it able to invoke the method on the bean, which is secured?

Thank you
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is, what role does the startup servlet use for invoking the bean, since no user has yet logged in? How is it able to invoke the method on the bean, which is secured?


Have you configured roles in the EJB ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya i have configured the roles for the EJB. This, i verified by trying to access the EJB through a jsp, after usual login proceedure. The bean could be accessed only through valid roles
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic