Hello,

I need a bit of help trying to figure how to get this pseudo code to
rollback correctly in one or more stateless session
beans manipulating some entity beans. Without nested transactions
(Weblogic), I'm at a loss.
I can't think of a clean way to describe it in words so here's the idea.

Enumeration e = vector.elements()
while ( e.hasMoreElements() ) {
    itemA = e.nextElement()
    while( itemA.quantity > 0 ) {
        if ( can find matching itemB ) {
            do some updates on itemA and itemB
        } else {
            if ( itemA.isSpecial ) {
                rollback EVERYTHING
<---------------
            } else {
                rollback any changes to this itemA and itemB
<---------------
            }
        }
    }
}


Thanks is advance,

Kurt Byrnes

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to