Because it is possible for the method to be executed without the transaction context. -----Original Message----- From: Rahul Sawhney [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 12:14 PM To: [EMAIL PROTECTED] Subject: java.lang.IllegalStateException in EJBContext.setRollbackOnly() Hi, Following sentence is from the EJB2.0 specs (pg331): "The Container must throw the java.lang.IllegalStateException if the EJBContext.setRollbackOnly() method is invoked from a business method executing with the Supports, NotSupported, or Never transaction attribute." It is clear that IllegalStateException should be thrown by the container in case of NotSupported, or Never transaction attributes for the bean. but i am not able to understand why it should be thrown in case the transaction attr of the method is "Supports". Can someone pls explain the reason for the same?? thanx!! === Rahul === [EMAIL PROTECTED] ----------------------------------------- =========================================================================== 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". =========================================================================== 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".
