Entity beans do not, but session beans do support BMT. So in BMT case we have to implement those transaction calls ourselves? Hey, that means we just found another use for BMT! That is if container can't work with my DB or whatever "persistent store", I can write BMT beans (uh oh, ok session only) and do it myself.
Originally posted by Vladas Razas:
By the way I forgot. Do stateless beans support transactions at all ?
Originally posted by Mikalai Zaikin:
yep, they support both CMT (declarative in DD) and BMT. One of the difference stateLESS from stateFUL though is that for stateLESS bean every method should finish transaction before method finishes, while for stateFUL this is not a mandatory and one transaction can be spreaded over several methods calls which come from client. (But this is a bad idea, since bean has to be kept in memory while in transaction, so if you forgot to call method with commit() or rollback(), then you just spent memory and EJB container is not happy of this).
Cheers!!!