Hello,
    After reading the CMP section in the ejb spec pfd2 I still am not sure
about the way locking mechanisms will work in ejb2.0? How is it being
implemented in JBoss? If I have a table A and it has a one-to-many
relationship with table B [entities in B have a foreign key relationship
with A]. Now if I do a select for update for an entity in table B

a) will it prevent other clients from doing deletes of the associated entity
in A?
The spec says that when you do a remove from A it will remove all assoicated
entities and then remove the entity itself [10.3.4.1] but what about the
other way round?

b) Will it prevent primary key update of the associated entity in A?
Spec 10.3.5 says NO. But if so how will locking work especially in a one to
many relationship where other entities might end up in contention for the
same parent entity?

I am probably just being silly but have we got an idea as to how this is
going to be implemented?

Vinay


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to