| Article: |
JBoss Optimizations 101 | |
| Subject: | O/R Mapping Tools and JBoss | |
| Date: | 2003-05-30 01:01:38 | |
| From: | anonymous2 | |
|
Response to: O/R Mapping Tools and JBoss
|
||
|
So does this mean that I only need to demarcate my transaction on my SLSBs? Should I worry about having my SLSBs getting locked by JBoss? My current implementation is configured to use UserTransaction retrieved from the JNDI and keep Hibernate's SessionTransaction it in a Thread Local. My SLSBs actually calls my own entry point for business logic which uses Hibernate codes.
|
||
Showing messages 1 through 1 of 1.
-
O/R Mapping Tools and JBoss
2003-05-30 01:07:10 anonymous2 [View]



- you may have multiple requests for the same data at the same time, it is up to hibernate to handle that correctly (if such thing is necessary)
- the caching cannot be handled by JBoss (as no entities are involved in the process) thus it is the job of Hibernate
- the distributed cache invalidation framework is useless as you don't use entities, so see if Hibernate has something similar
As for transactions maybe you should think about marking your SLSB methods as "Required" instead of playing with UserTransaction (if that makes sense in your app).
Cheers,
sacha