Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NamingException

 
Steven Gao Song
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • 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.
 
Mahesh Desai
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • 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......)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic