Ok. Confusion.
In headfirst
EJB, page 559:
Client scenarios:
(What happens when) Client calls remove() on a bean that's already been removed:
(Answer): "...Remember, remove() is just another method in the bean's interface, and if you call it on a removed bean, you'll get the same exception you'd see if you called any other business method on a removed bean - remote clients get a RemoteException, local client get EJBException"
Ok im think that statement is WRONG. But im sure i just have a bug in my understanding, please could somebody set me straight.
Now - when a client calls a method on a bean that has been removed you get a
"java.rmi.NoSuchObjectExecption"
I have written code to
test that and found it to be the case.
Then i tried another test. I called remove on an object twice - to try and remove and object which had been removed. And guess what exception i got - the same as a business method ( like the explaination form the book says ), but thats a "java.rmi.NoSuchObjectExecption", NOT a RemoteException !!!
The book is wrong right ?? they have miss printed right ??? Or have I gone MAD !!!
Thanks for you time guys !!
[ December 13, 2004: Message edited by: Dean Fredericks ]