Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB CMP Database Commit  RSS feed

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!