Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

how to rember these exceptions easily ?

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic