• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BMT Must not be used with Entity Beans

 
Sudhir V
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFE Pg 508 "Summary for BMT" says BMT must not be used by entity beans. Is that true? I did not find any explanation regarding this in the previous pages. I do remember it said that it is advisable to use container managed with Entity but don't remember it said "must"
 
Prasad Kuppa
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it is right. Bean Managed Transaction Demarcation is only allowed in Session Beans and Message Driven Beans.
The spec also specifies the same.
-Prasad
 
Sudhir V
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But why? There ought to be some reason right?
Sudhir
 
Prasad Kuppa
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good question. I got this question too...
I think, the transaction is always managed by the container. Please note that it is *only* "demarcation" that the bean provider is doing in BMT demarcation transactions. They(spec) might have thought that it may become complex to manage the transaction( by container) in EntityBeans( with support for relationships, CMP etc) with BMT demarcation and made it as a rule.
I wish someone else confirm this. let us see...
-Prasad
 
Sudhir V
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya I kind of thought for the same reason but just wanted to verify. Lets see if other members can throw some light into this.
Sudhir
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic