SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Originally posted by Hanna Habashy:
hi:
In HF EJB page 86, There is an alternative pattern to implement an EJB.
I am confused about RemoteException.
first I have to make this clear:
1- The methods in the bean must not throw RemoteException.
2- The methods in the component interface must throw RemoteException.
In the book, BookCartBean and BookCart(component interface) implement BookCartBusiness(interface). Now where can I declear the RemoteException?
BookCart(component interface) has no methods. If I declear them in BookCartBusiness interface, then I have to throw them in the bean (wrong).
Anything I don't see here?
any help is appreciated.
Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
Manzoor<br />SCJP<br />ICSE<br />ICS
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJP 1.4 / 5.0 - SCBCD 1.3 - SCWCD 1.4 - IBM 484
It�s not just because the interface declares an exception that your implemetation must declare it.
Originally posted by Geert Krekelberg:
Notwithstanding all the interesting (and fully agreeable) discussions on why not to use it, this:
is the answer to the original question, which I was looking for.
Thanks, Geert.
Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|