• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why entity beans cannot be coded as BMT?

 
NareshAnkuskani Kumar
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why entity beans cannot be coded as BMT?
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Entity beans must always use container-managed transaction.
I guess entity beans have ejbLoad()/ejbStore() to stay synchronized, even if the transaction rolls back, so there is no need for bean-managed transaction.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by NareshAnkuskani Kumar:
Why entity beans cannot be coded as BMT?


Can you thing of entity CMP bean with BMT ?
 
NareshAnkuskani Kumar
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what ever the container is doing in case of CMT entity beans, why not we simulate the same with Using BMT for entity beans.

for e.g.
as part of ejbLoad -- using BMT i can query the details from the database and assign the values to the persistent fields in the bean.
as part of ejbStore -- i can update the database using the values of the persistent fields.

but till now i haven't implemented BMT entity beans.
 
NareshAnkuskani Kumar
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what ever the container is doing in case of CMT entity beans, why not we simulate the same with Using BMT for entity beans.

for e.g.
as part of ejbLoad -- using BMT i can query the details from the database and assign the values to the persistent fields in the bean.
as part of ejbStore -- i can update the database using the values of the persistent fields.

but till now i haven't implemented BMT entity beans.
 
NareshAnkuskani Kumar
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what ever the container is doing in case of CMT entity beans, why not we simulate the same with Using BMT for entity beans.

for e.g.
as part of ejbLoad -- using BMT i can query the details from the database and assign the values to the persistent fields in the bean.
as part of ejbStore -- i can update the database using the values of the persistent fields.

but till now i haven't implemented BMT entity beans.

ok atleast i would like to know why java team might have avoided using BMT with entity beans.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No need to post same stuff three times.
 
NareshAnkuskani Kumar
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry when i clicked the Add Reply button the site was hanged so i re clicked the button that is the reason question appearing thrice.

please refer my third post
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by NareshAnkuskani Kumar:
that is the reason question appearing thrice.


For future reference, you can delete posts by editing them and checking the "delete this post" checkbox.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic