If you're within the same transaction, you should be ok I guess.

Bill

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Vinay
> Menon
> Sent: Monday, July 02, 2001 11:37 AM
> To: Dev @ JBoss
> Subject: [JBoss-dev] EJB 2.0 Locking for CMR
>
>
> 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
>



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

Reply via email to