aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Why entity beans cannot be coded as BMT? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Why entity beans cannot be coded as BMT?" Watch "Why entity beans cannot be coded as BMT?" New topic
Author

Why entity beans cannot be coded as BMT?

NareshAnkuskani Kumar
Ranch Hand

Joined: Sep 15, 2005
Posts: 76
Why entity beans cannot be coded as BMT?
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

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.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by NareshAnkuskani Kumar:
Why entity beans cannot be coded as BMT?


Can you thing of entity CMP bean with BMT ?


Rahul Bhattacharjee
LinkedIn - Blog
NareshAnkuskani Kumar
Ranch Hand

Joined: Sep 15, 2005
Posts: 76
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

Joined: Sep 15, 2005
Posts: 76
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

Joined: Sep 15, 2005
Posts: 76
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

Joined: Nov 29, 2005
Posts: 2308
No need to post same stuff three times.
NareshAnkuskani Kumar
Ranch Hand

Joined: Sep 15, 2005
Posts: 76
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
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
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.


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: Why entity beans cannot be coded as BMT?