• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

NamingException

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which one is system exception?

javax.naming.NamingException, or javax.ejb.NoSuchEntityException

I think they are both system exception, am i right?

Thank you.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Steven,

javax.ejb.NoSuchEntityException is system exception. It is thrown by us or the container because ejbLoad(), ejbStore(), or a business method was called in response to a call for an entity that has been removed.

If this exception makes it to the container, the container will transform it into [1] NoSuchObjectLocalException if the client is local or [2] NoSuchObjectException if the client is remote. Client never receives an exception called NoSuchEntityException.

javax.naming.NamingException is not system exception. It is subclass of Exception. It the superclass of all exceptions thrown by operations in the Context interfaces.


Thanks,
Mahesh

-------
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, (SCEA Part I preparing......)
reply
    Bookmark Topic Watch Topic
  • New Topic