aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Context when accessing EJBs from other EJBs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Context when accessing EJBs from other EJBs" Watch "Context when accessing EJBs from other EJBs" New topic
Author

Context when accessing EJBs from other EJBs

Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
Hello,

Suppose a J2EE server deploys 2 EJBs, the first one is accessed remotely by a client, and the second one is accessed locally by the first one. Will the security credentials used to access the first EJB be automatically transferred to the second one?

Thank you,
Yuriy
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Yuriy,


Suppose a J2EE server deploys 2 EJBs, the first one is accessed remotely by a client, and the second one is accessed locally by the first one. Will the security credentials used to access the first EJB be automatically transferred to the second one?

Yes they will. Actually the security credentials are specific for each execution thread. The container usually intercepts the client request and extracts the principal for that thread. The authentication/authorization process will basically be the same for each protected resource.
Regards.


I think, therefore I exist -- Rene Descartes
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
Great, thanks!

Yuriy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Context when accessing EJBs from other EJBs