• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

BMT Must not be used with Entity Beans

 
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"
 
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
reply
    Bookmark Topic Watch Topic
  • New Topic