I'm trying to implement a nested transaction with jboss2.0 (FINAL).
I need it, although the ejb specs says that this is not possible.
The scenario is:
One long runnig method is trying to update the database in several steps.
One of this steps is failing. In this case, there should be an message in
the database in
a protocol table. This message must be created, although the rest of the
tranaction is rolled back.
I can't wait with this message till the end of the businnes logic, because
there might be a lot of messages.
Is it possible to implement such a scenario?
I tried to simpy start a new transaction with bean manged tranaction,
but this caused an exception (like the specs says). I tried to use the first
bean with bean managed transaction and
a second bean with container managed transaction. In the second bean, there
is a method with tranaction attribute "requires new" which should start a
new transaction and commit this transaction, after the method is finished.
But i only got the result of the first bean, although no exception occured.
Any help is appreciated
Tilmann
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]