Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it true about entity bean?

 
Gaurav Chugh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it true that entity bean can only have container managed transaction , it can not have bean managed transaction , if yes why it is like this when we can have persistence by bean managed why not transaction are bean managed.?

Thanks in advance.
 
Steven Gao Song
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good question.

We assume a scenario:
The method of session bean invokes the method of the entity bean, and
complete a transaction operation.

If entity bean uses BMT, such kind of operation is impossible.
It is because BMT is one-way, right?

Do you still want entity bean with BMT?
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Steven Gao Song:
Good question.

We assume a scenario:
The method of session bean invokes the method of the entity bean, and
complete a transaction operation.

If entity bean uses BMT, such kind of operation is impossible.
It is because BMT is one-way, right?

Do you still want entity bean with BMT?


Hi Steven, but that is the case with any BMT bean, not necessarily an entity bean. isnt it?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!