> Noga Bargil wrote:
> 
> Hi
> 
> I would like to know how to call the remove method in EntityBean (BMP)
> from the client side.
> 
> Is it right to call it through Home methods:
> 
> findByPrimaryKey(pk).remove();
> 
> or I shouldn't use the home method first.
> 
> An example could be very helpful.
> 

Hi,

You have three different ways to remove an entity bean, by using:
        - the 'void remove()' method of the interface 'javax.ejb.EJBObject',
        - the 'void remove(Handle handle)' method of the interface
'javax.ejb.EJBHome',
        - the 'void remove(java.lang.Object primaryKey)' method of the
interface
          'javax.ejb.EJBHome'.

So, if you have the pk of the entity bean, you can write
        home.findByPrimaryKey(pk).remove()
or
        home.remove(pk)


Hope this help.
Kind regards.
Hélène.
-- 
-=- Hélène JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  mailto:[EMAIL PROTECTED]   http://www.evidian.com
  Phone: 33.4.76.29.73.53            Fax: 33.4.76.29.76.00
  Download our EJB Server JOnAS at http://www.objectweb.org
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to