Comments below -----Ursprüngliche Nachricht----- Von: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED] Im Auftrag von SUBSCRIBE EJB-INTEREST anonymous Gesendet: Mittwoch, 29. März 2006 14:51 An: EJB-INTEREST@JAVA.SUN.COM Betreff: ***SPAM*** EJB questions
Hi, I am new to EJB.I use stateless sessionbean. I have the below questions.Could anyone give me your suggestions / comments? 1.My ejb method calls a Data Access Object class's method. In my Data Access Object's class method can I catch Exception? Is this ok? Yes it is. You might want to hide the underlying SQL exception , potentially can be DB vendor specifics, and raise only say DataAccessException to the caller. 2. My ejb method performs single row insert into database.Is it ok if i set the transaction attribute to NotSupported? If you are using Transactional Data Source, you need to have a transaction for every DB operation. Thanks in advance, =========================================================================== 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".