jQuery in Action, 3rd edition
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Entities and CMT only Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Entities and CMT only" Watch "Entities and CMT only" New topic

Entities and CMT only

Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 360
Can somebody give me clear definition WHY entity beans can't be BMT?
Ugender Rekulampally
Ranch Hand

Joined: Nov 14, 2005
Posts: 135

Entity beans involve with transactions and relation ships among other entity beans so any BMT bean can't accept the transaction or the transaction can't be propagated into BMT bean. I know Session beans also participates in transactions but session bean is like a process so there is chance that it can be independent itself and run the process but that may not be the case with Entity beans.So some times there is a chance to have BMT session bean/MDBs. So probably this is one reason. So that is why they make it compulsory for entity beans. the recommended way is Container even for Session and MDBs.
I too was having the same question and I think I still have.

Hope this helps a bit.

[ September 22, 2006: Message edited by: Ugender Rekulampally ]
Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 360
Ugender, thanks for your reply.
I agree. Here's the link: http://aspose.com/file-tools
subject: Entities and CMT only
It's not a secret anymore!