Solved

J2ee Security on web application

Posted on 2004-04-09
6
177 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
6 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 150 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
even odd program using while loop 3 40
jdbc error in jsp application 20 46
null output 3 25
Selenium docs api java index 3 12
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…
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

809 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