Forums Register Login

Why entity beans cannot be coded as BMT?

+Pie Number of slices to send: Send
Why entity beans cannot be coded as BMT?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

Originally posted by NareshAnkuskani Kumar:
Why entity beans cannot be coded as BMT?



Can you thing of entity CMP bean with BMT ?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
No need to post same stuff three times.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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.
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1146 times.
Similar Threads
About BMT
Why cannot we have a BMT in an Entity Bean
Entity Beans and Bean Managed Transactions
Entities and CMT only
BMT with Entity beans
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:23:14.