Hi All... I'm trying to decide how to accomplish something and I keep going back and fourth on it. I have a system that uses entity beans (CMP with EJB 2.0) to represent user accounts. I want for each user account to have a multiple number of login in names (so the account can be shared by different human users but we can still log who does what). Each login name would be unique accross all login names and all accounts. I'm wondering if the login names should be dependant objects of the user account eb? This would seem to make sense, except that when the user logs in the system does not know what account they belong to, so I have to somehow search the dependant objects to find the user account eb. So, which of these options is preferable: Make the login names entity beans that have a relationship with the user account entity beans. This way, I can use a finder when someone logs in to get the login name eb and then get the related user account eb from. Make the login names dependant objects of the user account entity bean and search the dependant's table with JDBC (from a stateless session bean) when someone logs in to get the remote interface of the user account. Some other option I have not thought of? I would appreciate all suggestions. Thanks! Jim =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
