• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

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.
 
Slime does not pay. Always keep your tiny ad dry.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic