• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction attributes - regarding  RSS feed

 
PNS Subramanian
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When exactly do we go for Container Managed transaction or Bean Managed Transaction ?Is it that container managed is cheaper/better since container is optimized to manage the transaction ?
Is it that we go for Bean Managed only when we cannot satisfy our requirements with Container Managed ?
Currently, we face a situation where the transaction attribute for a component has been set to Container/Supports ? Is it worth changing it to bean managed so that we isolate the transaction from that of the incoming call?
 
amit mawkin
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you just want to set attributes you could do that through deployment descriptors and no need to change from cmp to bmp but for isolation
unfortunately if you wanna use isolation you got to use bmp and manage your transactions, cause in no way you call tell container via deployment descriptor to use what level of isolation unless and until your app server vendor might have given you some special tool over regular j2ee spec.
[ September 08, 2004: Message edited by: amit mawkin ]
 
PNS Subramanian
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what J2EE tutorial has to say

For entity beans with container-managed persistence, you can change the isolation level by editing the consistency element in the sun-cmp-mapping.xml file. These beans use the default isolation level of the DBMS, which is usually READ_COMMITTED.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
may be this sun-cmp-mapping.xml file is specific for suns app server. cuz J2ee tutorial talks about suns app server. anyways not came across suns app server yet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!