Hi
Is it possible to do something like this.
public method(Transaction outer, id)
{
try{
Transaction inner = new Transaction(IsoLev.ReadCom, "the name");
// Now somehow make outer fail if inner fails.
// Can i somehow add tje inner trasnation to the outer?
// do local stuff with id
inner.comit();
}catch(Exp e) { inner.RolBack(); }
}
I have some rather generic business methods which I sometime want to call with an outer transaction.
More specific.
When I call method whith outer = null the method should only use the inner transaction. IF an outer transaction is supplied they both should be depended of each outer so if inner transaction fails the outer should fail as well
Is this possible?
Thanks