• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why entity beans cannot be coded as BMT?

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why entity beans cannot be coded as BMT?
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
no wonder he is so sad, he hasn't seen this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic