Bean-Managed Transaction Suspension in J2EE
Subject:   Point?
Date:   2005-07-21 21:45:02
From:   hbarua
IMHO, the reason there was a UserTransaction interface was to clearly separate out the roles and responsibilities of BMTs and CMTs. Forcibly trying to extract the TM probably indicates that the app is not configured properly for transactions. If the J2EE spec does mandate exposing the TM in future versions of the spec that would of course be useful to frameworks like Spring (and also most of the OR mapping tools which use transactions). The tricks described here would just lead to non portable applications, apart from leading to possible inconsistencies.

1 to 1 of 1
  1. Point?
    2005-07-22 06:34:10  maximdim [View]

1 to 1 of 1