Solved

J2ee Security on web application

Posted on 2004-04-09
6
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example issues from command prompt 10 82
Java Restore security prompts not working 10 236
ejb mdb examples 1 36
batch vs regular insert in spring DAO 2 47
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.
Suggested Courses

738 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