• 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic