Visual Age 3.x incorrectly defines the EJBException class as a subclass of Exception instead of RuntimeException. It is fixed in VAJ 4 / WebSphere 4. Visual Age 3.x is in this respect not compliant to any existing EJB spec.
/Johan -----Original Message----- From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of Cornel Antohi Sent: den 17 oktober 2001 14:44 To: [EMAIL PROTECTED] Subject: Re: PetStore question Visual Age tells me that it can't compile the sources because the exception is not declared ----- Original Message ----- From: "Nikhil sharma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 17, 2001 11:31 AM Subject: Re: PetStore question > EJBException is a runtime exception. So why do you need to mention it in > throws clause of method signature. > > regards > Nikhil. > > -----Original Message----- > From: Cornel Antohi [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 17, 2001 3:20 PM > To: [EMAIL PROTECTED] > Subject: PetStore question > > > Most of the EJBs throw EJBException in the body of methods, but the > throw clause is not present in method signature !!!! This problem gives > me a lot of errors ! I have 1.1.2 version. > > 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". =========================================================================== 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".
