Howdy -- Ken gave the perfect answer, so I'm just agreeing here. NO EJB 2.0 bean should declare RemoteException, ever from within the bean implementation methods. The only place in which you declare RemoteException is in a remote component or home interface. That's it, since EJB 1.1. But you are still *allowed* to in order to be compatible with EJB 1.0 requirements. EJBException is unchecked, so it's there only as a convenience, but you do not need to declare it.
You don't have to declare exceptions on your business methods unless you really will/can throw them, and only if they are checked exceptions. So in that respect, your business methods adhere to normal
Java exception rules. Of course there are other exception-handling rules for things like create methods, etc.... but that's different.
cheers,
Kathy "just coming back to life again" Sierra
Thanks for all those who've been so patient and helpful while I've been away! I'll be getting back to you through email very soon.
(Oh yeah, be glad you're taking the EJB exam and not the new SCWCD! It makes the SCBCD look like a walk in the park. I'm not kidding; the new SCWCD will be *really* hard. Too hard, in my opinion, although the beta
test will determine that for sure. If too many questions are too difficult, they will be thrown out during beta.)