Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

J2ee Security on web application

Posted on 2004-04-09
6
Medium Priority
?
194 Views
Last Modified: 2013-11-24
Hello,

I think my question is very basic, nevertheless I have searched on the web and have not been able to come up with a satisfying solution for my problem. I might be searching on the wrong keywords or I might be looking for something that is never done the way I want to, so here goes..

I'm working on an intranet application in a J2EE environment (JBoss appserver), mainly using EJBs and servlets. I want to set up the EJB security using the regular J2EE role based mechanism. However, I want the actual users of my application to reside in a Database table, each one mapped to one or more roles defined in the J2EE security.
The idea is, a user logs into the application using a servlet and probably a EBJ. Now, somehow I have to let JBoss know what roles (i.e. what EJB rights) this logged in user has, so JBoss knows what methods/EJB this user may or may not invoke.
Now, how can I do this last part? How can I map a username (not known to JBoss itself) to a role JBoss can authorize?

Thanks in advance ;)

0
Comment
Question by:lizzzard
  • 3
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 600 total points
ID: 10794858
Is this what you're looking for? http://www.ejbsolutions.com/products/obox/community/ch18.html

The updated version of the document above is available for download for free at:
http://www.ejbsolutions.com/downloads/obox/community/index.html
0
 

Author Comment

by:lizzzard
ID: 10796470
Thanks for your comment Orange, but that' snot what Im looking for. I already have my entire platform setup and am well underway developing. I only need the conceptual solution for the problem Im facing.
0
 

Author Comment

by:lizzzard
ID: 10796477
No, wait! I didnt see the first link at first, only saw the obox product site.
I'll look into it!

Thanks
0
 

Author Comment

by:lizzzard
ID: 10953989
Hello :)

Sprry for the late reply, but got busy with other issues. I looked into it, and this seems about what I needed. Thanks for your suggestion ;)

Regards,
Lizzzz
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10954057
=-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

773 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