ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Bean-Managed Transaction Suspension in J2EE
Subject:   Point?
Date:   2005-07-22 06:34:10
From:   maximdim
Response to: Point?

I'm not advocating for this approach to replace CMT, by all means if CMT is sufficient for particular task one absolutely should prefer to use it over BMT. But in real life there are some (albeit rare) situations when you have to have flexibility of BMT in your code and also may have a legitimate reason to suspend/resume transactions. This article explains exactly that - how to do it when you need it.
Moreover I hoped to bring a little bit more light how Spring makes 'transactional proxies' functionality work, because I think it's important for developers to understand internal 'kitchen' of framework they're using and possible problems/limitations it imposes.
J2EE spec is not a dogma, and looking up TM doesn't make your code less portable than say using container-specific deployment descriptors. Even so in this article sample code to lookup TM intentionally simplified, there is a perfectly legal way to do it without introducing dependencies on any container-specific classes so your code would work in any container (see Spring sources for details if interested).

1 to 3 of 3
  1. Point?
    2005-07-22 09:13:56  hbarua [View]

    • Point?
      2005-07-22 09:44:39  maximdim [View]

      • Point?
        2006-06-05 13:55:47  ejbRules [View]

        • Point?
          2006-10-12 01:59:06  toddiuszho [View]

        • I think you're missed the point...
          2006-06-06 12:47:00  MaximDim [View]

  2. Re: Point?
    2005-07-22 09:12:51  hbarua [View]

  3. Point?
    2005-07-22 09:10:01  hbarua [View]

1 to 3 of 3