Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User »

Re: [JBoss-user] JBoss 4.0DR2 EJB Validation Errors

Neal Sanche

2003-07-06

Replies:

Well, that's definitely true. But, since it's a local interface, I
will generally not be. It is also a different interpretation of the
spec than the JBoss 3.2 server's enforce. Is this something Sun came
up with in the newer EJB spec? It's not a problem for me to go
through and change the few methods where I decided to throw Exception
and make them more specific.

Is there a more technical explanation of why Local interfaces can't
throw RemoteException other than it'd be confusing for the container?

-Neal

On July 6, 2003 10:13 am, Adrian Brock wrote:
> Allowing a Local Interface to throw a java.lang.Exception
> would also allow it to throw a java.rmi.RemoteException
> It depends how you read the intension of the spec.
>
> The other way around is correct, on a remote interface
> you can declare a java.lang.Exception which covers the
> java.rmi.RemoteException requirement.
>
> Regards,
> Adrian
>
> On Sun, 2003-07-06 at 14:19, Neal Sanche wrote:
> > Good day,
> >
> > I tried JBoss 4.0.0DR2 the other day, and subjected it to the
> > torture of my latest application. I was interested in the new web
> > service stuff, but wasn't able to get my .EAR file to load
> > without validation errors. In particular, the validator was
> > complaining that methods in local interfaces are not allowed to
> > throw java.rmi.RemoteException. But my methods don't throw that
> > exception, they throw
> > java.lang.Exception (I know, I'm a bit lazy and sometimes force
> > other layers to do the work of figuring out what went wrong).
> >
> > Is this a bug? If so, I'd be happy to report it on sf.net
> > instead.
> >
> > Cheers.
> >
> > -Neal
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites
> > including Data Reports, E-commerce, Portals, and Forums are
> > available now. Download today and enter to win an XBOX or Visual
> > Studio .NET.
> > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06120
> >3_01/01 _______________________________________________
> > JBoss-user mailing list
> > JBoss-user@(protected)
> > https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
JBoss-user@(protected)
https://lists.sourceforge.net/lists/listinfo/jboss-user


©2008 junlu.com - Jax Systems, LLC, U.S.A.