Forums Register Login

NamingException

+Pie Number of slices to send: Send
Which one is system exception?

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

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

Thank you.
+Pie Number of slices to send: Send
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......)
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 648 times.
Similar Threads
Txn not automatically rolling back after RemoteException
stateful session bean instance removal
Part I question
Question about Exception
A system exception must be an unchecked exception?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:08:14.