• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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.
 
Crusading Chameleon likes the size of this ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic