Originally posted by Johan Ruttens:
As you can see I trigger a runtime exception. In the catch clause the transaction has to be rolled back. Here is where my problem occurs: the table in the DB gets always filled with the three records, while I expect an empty table (because of the rollback).
Can anyone help me or give me some tips?
I'm using JBuilder 7 with Borland Enterprise Server 5.0.2 and SQLServer 8.0
I have a couple comments:
1 - My recommendation is to stick with CMT instead of BMT for your EJBs. CMT is much easier to work with and gives you more flexibility. There are very few cases where BMT is necessary.
2 - I suggest you check the documentation for your Application Server. Most require the use of certain types of Container Managed Datasource. For example, in this particular instance you would need a TXDatasource for transactioning to work properly. Unfortunately, I have next to no knowledge of BES so I can't help much with the specifics of your problem.
I know Borland runs its own newsgroups and forums... maybe you would get a better response if you posted this question there.
[ February 09, 2004: Message edited by: Chris Mathews ]