On Thu, Mar 29, 2001 at 11:32:57AM +0100, Piers Cawley wrote:
> 
> Hmm... not quite sure what happens if either of the COMMITs fail.

That's exactly the problem. And what if you crash after the
first COMMIT?

This is not an easy problem. The usual solution is
called "two-phase commit". See
http://www.sei.cmu.edu/str/descriptions/dtpc.html
for example.

> And I'd bemused as to how Java would handle it too...

It's not a language issue per se.
J2EE is (a lot!) more than just the Java language.

http://www.subrahmanyam.com/articles/jts/JTS.html

 .robin.

-- 
"Do nine men interpret?" "Nine men," I nod. 

Reply via email to