aspose file tools*
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
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: 10289
    
168

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: 10289
    
168

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