Entity Beans store and update rows. Urgent!!

Good morning:

I use a CMP for each row in a table.

I have a CMP, with ejbCreate, ejbRemove and ejbStore methods. In the home I have the create method, but not the remove and store. With VisualCafee I can promote de ejbCreate methods to the home interface, but not the store and remove. The ejbStore and ejbRemove don't have any source code.

If I want to update or delete a row, how can I do it or how the container did it?

Thanks in advance

David B.

[495 byte] By [BayoD] at [2007-9-26 3:20:21]
# 1

What do you mean by "promote the ejbCreate methods to the home interface"?

When you have a CMP EJB, the container will manage storing, updating and removing the row corresponding to the EJB in the database. You don't have to implement any database modifying code in ejbRemove() or any of the other methods. That is exactly why it is called Container Managed Persistence, as opposed to Bean Managed persistence.

Jesper

jesper1 at 2007-6-29 11:36:10 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...