In fact if you add a throws EJBException to the interface you'll find you can't deploy the beans on some app servers, JBoss comes to mind immediately.
Cheers -----Original Message----- From: Cornel Antohi To: [EMAIL PROTECTED] Sent: 10/17/01 8:44 AM 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".
