• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB CMP Database Commit

 
Sankar Srinivasan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly when does the EJB container managing CMP beans commit the data to the database. Is there any method call in EJB that is used for performing commit to the database ?

Thanks in advance.

Sankar.
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If there is no exception thrown the container will issue a commit. If it encountered any error then we need to call setRollbackOnly() to rollback the transaction.

Regards,
Sawan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!