This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Startup Servlet invoking a secure EJB in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Startup Servlet invoking a secure EJB in JBoss" Watch "Startup Servlet invoking a secure EJB in JBoss" New topic
Author

Startup Servlet invoking a secure EJB in JBoss

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

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


[My Blog] [JavaRanch Journal]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

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 ?


Groovy
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Startup Servlet invoking a secure EJB in JBoss