| Sign In/My Account | View Cart |
| Article: |
Bean-Managed Transaction Suspension in J2EE | |
| Subject: | Point? | |
| Date: | 2005-07-22 09:13:56 | |
| From: | hbarua | |
|
Response to: Point?
|
||
|
>> This article explains exactly that - how to do >>it when you need it. Yes it makes sense from that perspective. Thanks for pointing it out. >>I think it's important for developers to >>understand internal 'kitchen' of framework >>they're using and possible problems/limitations >>it imposes. Absolutely agree with this.
|
||
Showing messages 1 through 4 of 4.
I am using POJO Entities that coordinate with JPA and UserTransaction for ORM. On top of that, I want POJO DAOs that emulate CMT.
I do not want EJBs. I do not need to remote my objects. I do not want to write tons of interfaces and classes for every DAO. No thanks.
My POJO DAOs will use my own custom Annotations that emulate javax.ejb.TransactionAttribute. Using Spring and AspectJ and advice in this article, I now have an idea of how to write my advice blocks.
And THAT is the point. I don't want to sacrifice the ease of declarative transaction demarcation just because my software needs do not justify the heavyness of the rest of EJBs.
True. You cannot be sure 100% that TM is available and/or behave properly in any possible container (as shown in article for example there is at least one known problem with TM in WLS). But in the majority of cases it's there and works as expected.