Since Entity Beans are forced to have CMT, and the commit, setAutoCommit, and rollback methods of java.sql.Connection aren't allowed in CMT, how does a BMP entity bean recover from a failed call to ejbStore or ejbCreate after partial completion? Is ejbStore of BMP entity beans not allowed to have more than one database-modifying call?
Thank you, Yuriy
posted 12 years ago
If you wish to let the container know that something has gone wrong and you don't want to throw a runtime exception, you can access the UserTransaction through your context object and call setRollbackOnly().
James Carman, President<br />Carman Consulting, Inc.