Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How do you do multi user apps on Jboss/J2EE?

Thread Tools

How do you do multi user apps on Jboss/J2EE?

Ryan Boder
Posts: n/a
I am fairly new to J2EE and am using Jboss for my app server. I need
to implement the concept of multiple users, like many enterprise
systems do. How is that usually done?

I guess since authorization is outside of the scope of J2EE, it is
usually dependent on the J2EE server, but I'm not sure.

After studying the Jboss docs for a while I have come up with a simple
way that will probably work, but I hope to benefit from others
experience before I go do it.

I am thinking that I can store usernames and passwords in entity beans
and then create a JAAS LoginModule that checks the beans to see if the
given user and password are correct for authentication. Then I can
make sure the user is allowed to access the bean that contains the
method being called using a Jboss SecurityProxy on the remote
interfaces and storing the owner in each private bean. The security
proxy would make sure the authenticated principal matches the bean
owner before allowing access to the bean.

1. JAAS Login by verifying the given password matches the one in the
user entity bean.
2. Make sure authenticated user matches bean owner for the bean being

I think this will work, but I know that many others have done multi
user secure apps on Jboss, so please tell me if you know a better or
more common way.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET 2.0 Web Apps / .NET 3.5 ASP.NET Apps - Differences/Similariti london1919 MCTS 1 12-08-2008 03:16 PM
Which do you prefer? MCTS: Web Apps or MCTS: Windows Apps? Willy David Jr MCTS 3 01-09-2007 05:49 AM
Top 3 firewalls, anti-virus apps, anti-spyware apps The Master of The Known Universe Computer Support 10 05-12-2006 11:00 PM
Running python apps from within python apps aph Python 4 01-14-2006 04:06 PM
Ruby on Rails to develop live multi-user web apps? Ruby 0 10-05-2005 07:49 AM