• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

API definition for javax.ejb.RemoteException? - HFEJB Pg159

 
Youquan Li
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two kinds of RemoteException mentioned in HFEJB and other EJB books (I also searched it from google).
1. java.rmi.RemoteException
2. javax.ejb.RemoteException

I could not find the API definition of "javax.ejb.RemoteException" anywhere. I am kind of confused by them. Can anyone please shed light on it?

Thanks.
 
Prashant Neginahal
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell me the page number in HFEJB where *javax.ejb.RemoteException* is mentioned.

Thanks,
Prashant
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haha, you read wrong! See here:
http://java.sun.com/j2ee/1.4/docs/api/javax/ejb/RemoveException.html

Pay attention to the spelling: RemoveException
 
Youquan Li
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot guys.

I wish that were the case which is "javax.ejb.RemoveException" in HF Page159, however it is not.

Please check Head First EJB page 159, there are three places with value (javax.ejb.RemoteException).

Also, it is not in errata list in link (http://www.oreilly.com/catalog/hfjejb/errata/)

I just discovered Kanth Kris mentioned the same thing about two years ago. http://www.coderanch.com/t/158244/java-EJB-SCBCD/certification/Errata-Head-First-EJB

It did confuse me when I took one mock exam which has one question with two options to pick. One is java.rmi.RemoteException and another is javax.ejb.RemoteException.

Thanks!
[ June 28, 2005: Message edited by: Youquan Li ]
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Youquan,
I don't remember exactly but javax.ejb.RemoteException was there in past. On the net I can see in many documents it is used in the throws clause of the finder methods. But in EJB 2.0 this exception is not there. If it is in the book then it must be errata as pointed out by the other post for which you have provided the link.

Hope that helps.
 
Youquan Li
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Sawan.

I think you are right. Seems it is exactly the case.

javax.ejb.RemoteException is deprecated since EJB1.1 (according to one of IBM's doc).

Have to try to remove this "Exception" from my memory then

Cheers,
Youquan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic