File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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.



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: calling a secured ejb from an unsecured one