Solved

J2ee Security on web application

Posted on 2004-04-09
6
178 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
table example 4 32
printf performancy 11 71
collection output issue 9 37
What is the use of Forwarding Class in java 1 16
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

828 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