Hi, I've got a session bean method, which calls create() on three different entity EJB's, and as such inserts three tuples in the DB...
Now I'd like these three calls to be part of one and the same
transaction, so that, if e.g. the second call fails, the database would
be unchanged...
I thought this would work if I set the following above the session bean
method:
/**
*
* @ejb.interface-method
* @ejb.transaction type="Required"
*/
But it seems like, if the second call fails, the first tuple is inserted
in the database anyway...
When the call fails, I throw an exception...
What could be going wrong here? Isn't "Required" the right attribute
here?
Thanks,
Hans
--
In a world without walls and fences, who needs windows and gates?
Is the essence that the light pulse lives longer?
Hans Schippers
1LIC INF
UIA 2002-2003
signature.asc
Description: This is a digitally signed message part
