Hello All, I have an EntityBean CMP 2.1, deployed on JBoss 3.2.5.
The create method of this entity bean is invoked from an Stateless session bean, with transaction demarcated with attribute "Required". When an application exception is thrown from ejbCreate method, the container rollbacks the transaction by default. But if an application exception is thrown from ejbPostCreate method, the container doesnt rollback the transaction by default the client have to invoke setRollBackOnly to rollback the transaction. Does that mean, any businesslogic which requires to throw an application exception and not rollback the transaction when an entity bean is created should be placed in ejbPostCreate ? The EJB Specs 2.1 says if an application exception thrown should enable the client to have control over transaction, but in case of ejbCreate it doesn't seems so doing it. Any thoughts on the above would be appreciated. Thanks, Vikram. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".