Why the real class method does not necessary to throw such exception
It is becos the real EJB class dont know what exceptions to be thrown, when there are some unexpected exception occurs.
For example, when there are not enough system resources, a system exception will be thrown. However, how come the EJB itself knows where is the client? Remote? (to throw RemoteException) or Local? (to throw EJBException).
Thus, the exception that really throw out is determined by the container, instead of the EJB object itself.
Nick
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)