If it says so in the spec (and it does) then yes, it's a no-no.

-----Original Message-----
From: Lennart Petersson [mailto:[EMAIL PROTECTED]]
Sent: 13 December 2000 08:22
To: jBoss
Subject: Re: [jBoss-User] return values in the home interface must be
ofvalidtypes for RMI/IIOP.


Hi! Is it really a no-no?

EJB 1.1 spec 12.6 Differences from EJB 1.0:

<snip>...the enterprise bean methods should use the
javax.ejb.EJBException, or other suitable RuntimeException to report
non-application exceptions...</snip>

/Lennart


Rhett Guthrie skrev:
> 
> sounds like a minor bug in the verifier. ejb spec says runtime exceptions
> are a no-no for bean methods. the error message should say something like
> that instead of saying your return value is of the wrong type.
> 
> -rg
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of vimal kansal
> > Sent: Tuesday, December 12, 2000 4:45 PM
> > To: [EMAIL PROTECTED]
> > Subject: [jBoss-User] return values in the home interface must be of
> > validtypes for RMI/IIOP.
> >
> >
> > If my session bean throws an extended from
> > RuntimeException then I get the following error when I
> > deploy. If I change it to throw an exception extended
> > from Exception, the problem goes away. Any Ideas.
> > Thanks
> >
> > [Verifier] Verifying
> > file:/F:/java/jBoss-2.0/bin/../tmp/deploy/emejb.jar/ejb1008.jar
> > [Verifier]
> > Bean   : SessionManager
> > Method : public abstract SessionManager create()
> > throws RemoteException, CreateException
> > Section: 6.10.6
> > Warning: The method return values in the home
> > interface must be of valid types for RMI/IIOP.
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Shopping - Thousands of Stores. Millions of Products.
> > http://shopping.yahoo.com/
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Problems?:           [EMAIL PROTECTED]
> >
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]

-- 
mailto:[EMAIL PROTECTED]
http://www.benefit.se/english


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to