Hi,

1. For every findByPrimaryKey  there is ejbFind... fn in the . So when you
call the findByPrimaryKey  fn , container  finds the matching ejbFin... fn
and executes it.

2. You should call findByPrimaryKey . ejbLoad fn is called automatically and
is not intended to be called directly by client.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Warm Regards
Ashwani Kalra
Sr. Member Dev. Staff
Aithent Technologies(P) Ltd.
Email   : [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Pablo Schor
Sent: Wednesday, May 09, 2001 4:30 AM
To: [EMAIL PROTECTED]
Subject: entity EJB & RDBMS


Hi.

I have two questions:

1. Can someone make clear the difference between ejbFindByPrimaryKey and
findByPrimaryKey ?

2. In entity EJB BMP with RDBMS environment I need to query  a database
table row from a EJB client (in this case the client would be a session
EJB).

Should I invoke ejbLoad or ejbFindByPrimaryKey or findByPrimaryKey ?

wouln't the container access two times to the database, once for verifing if
the row exists (xxxFindByPrimaryKey) and the second time loading the row
(ejbLoad) ?


Thanks,

Pablo

===========================================================================
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".

Reply via email to