entity beans transactions

Why entity beans can not have bean-managed transactions ?
[64 byte] By [jyoti_puria] at [2007-11-26 17:53:01]
# 1
JAVA doesnt want to be blamed because of the transanction issues as a result of user coded transancations..simple..
mshanua at 2007-7-9 5:05:59 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Well, When you use Entitiy beans you go through ejbLoad, business methods and ejbStore. etc That means that you should start your transaction in ejbLoad and end it in ejbStore. However, you don't have any control over calling ejbLoad and ejbStore, so you can't guarantee that they would ever be in the same transaction. In fact your transaction might never commit. You can use declarative transactions, though. Just remember not to force a new transaction for each method call, that would degrade your performance.

Kirvesrintaa at 2007-7-9 5:05:59 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...