Hi,
Problem is that after a RuntimeException the transaction
must be rolled back, and the current JTA implementation
does not rollback XA resources on rollback, leaving the
transaction at the resource active forever (or until a
timeout happens followed by a heuristic decision.
See http://www.mail-archive.com/[email protected]/msg02556.html
for a crude hack. I'm working on something better.
Best Regards,
Ole Husgaard.
[EMAIL PROTECTED] wrote:
>
> Hi,
>
> I have a Stateless Session bean that:
> 1) Deletes all data from a particular table
> 2) Sets new data based on what it was given.
>
> In order to test the rollback functionality, I throw a Runtime Exception after
> the delete, but before the insert. The database rolls back fine, and the data is
> all there, but when I run the test program again, I get no data. If I shut down
> jboss and run the application again, all the data is there.
>
> There is a bug (#150) that seems to address this problem, but the solution in
> the comments is "Works with the rewired container and JTA stuff". I'm not sure
> what that entails. I am running jboss 2.0. Do I have to include any patches etc?
>
> Any help greatly appreciated.
>
> Thanks,
> - Ashish