| Article: |
Bean-Managed Transaction Suspension in J2EE | |
| Subject: | Point? | |
| Date: | 2006-06-05 13:55:47 | |
| From: | ejbRules | |
|
Response to: Point?
|
||
|
No, it does not work as expected. Spring was broken 3 different times because the TM was changed in 3 different versions of WebSphere. Anyone that writes code that plays with the native TM is playing with fire.
|
||
Showing messages 1 through 2 of 2.
-
I think you're missed the point...
2006-06-06 12:47:00 MaximDim [View]
-
Point?
2006-10-12 01:59:06 toddiuszho [View]
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.



No matter how you feel about it, Spring is used more and more inside J2EE containers and I think it's beneficial for developers to have at least basic understanding of how it communicates with transactions.