?
Solved

JAAS Authentication in MDB

Posted on 2005-03-16
4
Medium Priority
?
595 Views
Last Modified: 2013-11-24
We are using Weblogic Application server 8.1.
There is a session bean (sb1) sending a JMS message that is processed by an MDB which in turn calls another session bean (sb2). In this situation can the mdb or sb2 leverage the JAAS authentication already done before calling sb1. If not can the mdb leverage the custom authentication provider to ease the pain of doing the authentication again and set the authenticated user roles that sb2 can leverage. (the session bean sb2 methods require authorization)

0
Comment
Question by:padmasri99
  • 2
2 Comments
 
LVL 15

Accepted Solution

by:
aozarov earned 1000 total points
ID: 13571853
The MDB will not use the Principal of the sender (sb1). Sender and receiver are decoupled and receiver runs in its own thread.
You can use the run-as setting in the deployment descriptor or use login programatically.
0
 
LVL 15

Expert Comment

by:aozarov
ID: 13682174
Is there still something unclear?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month4 days, 9 hours left to enroll

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question