Hi Brett,
I think you mix up:
- methods of home interface and Remote interface,
- and methods of the bean.
The 'throw clause' of methods defined in the interface Home MUST INCLUDE
the java.rmi.RemoteException (cf 6.10.6 and 9.2.8 chapters of EJB 1.1).
The chapter 6.10.3 talks about the ejbCreate method which is
a method of the bean.
Kind regards.
H�l�ne.
"Wooldridge, Brett" wrote:
>
> I have a home interface that is compliant with the EJB 1.1
> spec. in that it DOES NOT throw RemoteException, but instead
> throws only EJBException and CreateException.
>
> In 6.10.3 of the EJB 1.1 spec it says:
>
> Compatibility Note: EJB 1.0 allowed the ejbCreate method to throw the
> java.rmi.
> RemoteException to indicate a non-application exception. This practice is
> deprecated in EJB 1.1 - an EJB 1.1 compliant enterprise bean should throw
> the
> javax.ejb.EJBException or another RuntimeException to indicate
> non-application
> exceptions to the Container (see Section 12.2.2).
> ---
>
> The spec goes on to say, basically, that NO method on the home
> interface should be throwing RemoteException in EJB 1.1.
>
> The bug I seem to have encountered is that the GenIC tool emits an
> extension of the home interface that includes code that throws
> RemoteException. The result, of course, is that when GenIC invokes
> the compiler, it complains that RemoteException is thrown but not
> declared as being thrown. Which is, of course, true given that
> my Home does not declare throwing it.
>
> The obvious short term solution is for me to change my home
> interface to declare that it throws RemoteException. The real
> solution is that the extension class should not throw RemoteException,
> or it should simply append RemoteException to the list of thrown
> exceptions in the extension class if it is not present.
>
> Am I correct in reading this as a bug, or is there something I'm
> missing? I'll be happy to fix it if the core team thinks it's
> really a defect.
>
> Brett Wooldridge
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
--
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www-frec.bull.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.bullsoft.com/ejb
_______________________________________________________________
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".