• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to rember these exceptions easily ?

 
Raju Sri
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I just want small tips on remebering the Exceptions thrown by EJB.
I am reading the HF EJB book and i found getPrimaryKey() from session bean is throwing 2 different exceptions in two different situations.

Below is the statments from HF EJB book page 559 and 560.
1)[page 559]When client calls getPrimaryKey() on component interface of session bean, he will get RemoteException
2)[page 560]When a session bean calls getPrimaryKey() on its context , he will get an IllegalStateException.

In both cases client is acccessing getPrimaryKey() metho and gettting different exception.I just want how to easily remember these kind of exceptions ?

Thanks
raju
 
krishnakumar ramamurthy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the second case the client is not calling the getprimary method the session bean is calling it in one of its method. The second call may not be in response to client's call.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic