Jim, Entity References can be handled in several ways: You can rely on <bean-ref> and JNDI and do a lookup, TOPlink handles it by using a project mapping file you create behind the scene. The two beans may be mapped using a 1-1 relationship which the database uses to join the respective tables and return references to the beans... there's even a bit of extra magic to enable mapping bean instances which the database knows about to remote references which you're interested in. Other CMP mechanisms effectively wrap your bean instance to do the necessary magic. Bad news is it's not standard, good news is that most of the non-standard stuff is not in your bean. If you build in the 1st mechanism you are essentially by-passing typical CMP mechanisms anyway - but you Also do not get their modelling power. Cheers, Jon Jon Ferguson PhD. MSc. CEng. Senior Software Engineer Phone: (972) 726-4466 Fax: (972) 726-4692 E-mail: <mailto:E-mail:[EMAIL PROTECTED]> [EMAIL PROTECTED] __________________________________ ObjectSpace, Inc. Leader in Business-to-Business Solutions http://www.objectspace.com -----Original Message----- From: Jim Archer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 17, 2000 3:34 PM To: [EMAIL PROTECTED] Subject: EJB 1.1 and entity references - is there a defacto standard? Hi All... I am interested in making my EJB application compatible with as wide a variety of EJB 1.1 compliant servers as possible. Also, I would like to allow my entity beans to have references to other entity beans and have this handled properly by CMP. Are these two goals incompatible, or has a relatively standard way of handling entity references appeared? 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". =========================================================================== 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".
