Not a problem! I'd like to know what the 'true' meaning is but I sense it
would be hard to divine!

I'm caught in exception hell at the moment between different OSS projects,
just trying to get some consistency ;)

-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: Thursday, October 18, 2001 12:08 AM
> To: Mike Cannon-Brookes
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Xdoclet-user] Problems with thrown Exceptions?
>
>
> On Wed, 17 Oct 2001, Mike Cannon-Brookes wrote:
>
> > 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.
>
> I swear the spec said that it should throw EJBExceptions in that case, but
> it doesn't quite... I'm still not sure what the exact behaviour should
> be.  If what you're saying is true, then yes, it seems we need to make a
> change to the template.
>
> No disrespect, but I wouldn't mind hearing a few more opinions on this
> before doing anything.
>
> cheers
> dim
>
>
> >
> > 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


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

Reply via email to