  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | EntityContext.equals | EntityContext.equals 2004-02-03 - By Alok_Band
Back EntityContext reflects Bean's environment.
EntityContext.getPrimaryKey() returns Primary Key of EJB Object with which Bean instance is associated with.
Same EntityContext object would return different PK objects depending upon PK of the EJBObject with which it is associated.
Hence for 10 instances there must be 10 entity contexts.
Regards, Alok
-- --Original Message-- -- From: Deepak Rustagi [mailto:drustagi@(protected)] Sent: Tuesday, February 03, 2004 2:16 PM To: J2EE-INTEREST@(protected) Subject: Re: EntityContext.equals
Entitiy Context is a shared object and 10 instances of same bean should have one Entity Context. Any Comments.
Bye deepak rustagi
Alok_Band <Alok_Band@(protected) To: J2EE-INTEREST@(protected) .COM> cc: Sent by: "A Subject: Re: EntityContext.equals mailing list for Java(tm) 2 Platform, Enterprise Edition" <J2EE-INTEREST@(protected) VA.SUN.COM>
03/02/2004 05:55 Please respond to "A mailing list for Java(tm) 2 Platform, Enterprise Edition"
I think .equals method in EntityContext is inherited from Object class. IMHO it does not provide any specialized services.
EntityContext is one per each Bean instance. If there are 10 bean instances then there would be 10 EntityContext objects.
EJB spec only mandates behavior of EntityContext object not implementation.
Regards, Alok
-- --Original Message-- -- From: Xie, Jinpeng [mailto:JXie@(protected)] Sent: Monday, February 02, 2004 11:59 PM To: J2EE-INTEREST@(protected) Subject: EntityContext.equals
How do I understand EntityContext.equals? How many EntityContexts exist in one container? Is EntityContext a singlet in one container?
Jim
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. **************************************************************************
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. **************************************************************************
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|
 |