Originally posted by Hanna Habashy:
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.
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.