I made a little sample program, which uses a CMP
Entity EJB. In one method of this bean I call
setRollbackOnly() in the EntityContext. All methods
of the bean have default transactional behaviour. So
when the method has finished, the transaction should
roll back. When I call another method after that, the
client blocks. After a while (timeout) jBoss prints
error messages saying, that the transaction marked for
rollback still exist.
If I throw the EJBException, then the transaction is
rolled back, but the ejbStore() is called before that.
This is behaviour wanted?
Log in to post a comment.