Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes calling a secured ejb from an unsecured one Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "calling a secured ejb from an unsecured one" Watch "calling a secured ejb from an unsecured one" New topic
Author

calling a secured ejb from an unsecured one

Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

I have one EJB EB1 which is secured and can only be accessed by a particular role. Another EJB EB2 which is not secured. EB2 calls EB1 and fails.
The problem I have is there is no authentication happening when EB2 is accessed by the client hence there is no Role in question. How to get around this -
would Run-As work in this case.. or is there another way.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling a secured ejb from an unsecured one
 
Similar Threads
How to servlet invoked secured EJB in JBOSS
help required specifying Transation attributes for this scenario
Startup Servlet invoking secure EJB in JBoss
passing identity of a plain java program to an ejb
Accessing self's EJBObject from EntityBean?