Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > J2EE Security Design Question

Reply
Thread Tools

J2EE Security Design Question

 
 
Ryan Pape
Guest
Posts: n/a
 
      09-12-2003
I have a J2EE app where there is a one-one correspondence between the
JAAS user an an Entity bean (user EJB). As far as I know, there is no
way to automatically bind the two together so retrieveing the entity
bean associated with a user is done by something like,
UserHome.findByPrimaryKey(name_from_principal).

I have a stateful session bean, call it "Manager", that executes
actions to underlying entity beans for a particular user.

I have another entity bean, "file", which upon creation must be given
a reference to a third entity bean that can be dervied by looking at
the user entity bean I described above.

So my question is, from a design & performance perspective:

Is it better to, in ejbCreate methods for the file entity bean,
perform the lookup to get a user entity bean from the security
Principal each time

or

store a reference to the user entity bean in my stateful session bean
and pass it as a parameter to the create() method on my file entity
bean.

Any opinions would be appreciated.
 
Reply With Quote
 
 
 
 
Bryce (Work)
Guest
Posts: n/a
 
      09-12-2003
On 12 Sep 2003 10:47:02 -0700, (Ryan Pape) wrote:

>I have a J2EE app where there is a one-one correspondence between the
>JAAS user an an Entity bean (user EJB). As far as I know, there is no
>way to automatically bind the two together so retrieveing the entity
>bean associated with a user is done by something like,
>UserHome.findByPrimaryKey(name_from_principal).


What Application server are you using? JBoss has a Database Login
Module...

 
Reply With Quote
 
 
 
Reply

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
Best JAVA/ J2EE Training Institute in Delhi, Live Projects onJAVA/J2EE, Short term Java courses are also available. Rajive Narain Java 0 09-18-2009 10:48 AM
Shine J2EE Framework 1.2 Vs. J2EE Frameworks mehdi mousavi Java 0 02-15-2009 04:55 PM
J2EE security question Lian Liming Java 0 01-06-2006 09:26 AM
j2ee SDK, javax.* and j2ee implementations T.G. Java 1 01-04-2006 08:22 PM
LAMP & J2EE as opposed to LAMP vs J2EE Ross M. Greenberg Java 6 12-24-2004 09:59 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57