Investigated further. The problem comes in generating CMP and Session
classes (home / remote interfaces are fine).


Your methods are not allowed to _throw_ RemoteExceptions (agreed) however
they are allowed to declare that it may be thrown. For example if my method
looks up and uses other EJBs, that method 'throws RemoteExceptions' but I do
not generate them.

AFAI can see XDoclet doesn't handle this well? I made all methods declare
throws RemoteException in my session template and they work fine after this
minor mod?

-mike


Mike Cannon-Brookes :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
     Supporting YOUR J2EE World



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dmitri
> Colebatch
> Sent: Wednesday, October 17, 2001 11:07 PM
> To: Mike Cannon-Brookes
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Xdoclet-user] Problems with thrown Exceptions?
>
>
> since ejb 1.1 bean classes are not allowed to throw remote
> exceptions.  application exceptions are handled properly afaik.
>
> hth
> dim
>
> On Wed, 17 Oct 2001, Mike Cannon-Brookes wrote:
>
> > XDoclet seems to have a problem when its generated EJB class
> extends another
> > class, and that class throws Exceptions?
> >
> > ie
> >
> > - EntityAdapter is an abstract EJB helper class which throws
> > RemoteExceptions from some methods
> > - BeanA extends EntityAdapter
> > - XDoclet generates a BeanACMP which _doesn't_ throw those
> RemoteExceptions
> > from the same methods
> > - BeanACMP doesn't compile because it's methods don't throw the
> exceptions
> >
> > What to do? How can I get my generated beans to throw
> exceptions properly?
> >
> > -mike
> >
> > Mike Cannon-Brookes :: [EMAIL PROTECTED]
> >
> > Atlassian :: http://www.atlassian.com
> >      Supporting YOUR J2EE World
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >
>
>
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to