[JBoss-dev] Why are EJBException wrapped with a ServerException?

2002-06-12 Thread Dain Sundstrom

Why is an EJBException wrapped with a ServerException in LogInterceptor?

A ServerException is a declared remote exception and will not pass 
through a local interface and specifically will not pass out of an CMP 
2.0 abstract accessor.

Only if an EJBException is leaving the server over a remote interface 
should an EJBException be converted into a RemoteException (even then 
I'm not sure it should be converted).

I think the same goes for RuntimeExceptions, but I would have to check 
the spec on that.

I am willing to make this change to LogInterceptor, but I don't know 
where to change the protocol code (which should convert the exception).

-dain


___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Why are EJBException wrapped with a ServerException?

2002-06-12 Thread Scott M Stark

Its legacy from the days of having RMI/JRMP as the access protocol.
This should be moved to the protocol specific invokers.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message - 
From: Dain Sundstrom [EMAIL PROTECTED]
To: JBoss-dev [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 2:00 PM
Subject: [JBoss-dev] Why are EJBException wrapped with a ServerException?


 Why is an EJBException wrapped with a ServerException in LogInterceptor?
 
 A ServerException is a declared remote exception and will not pass 
 through a local interface and specifically will not pass out of an CMP 
 2.0 abstract accessor.
 
 Only if an EJBException is leaving the server over a remote interface 
 should an EJBException be converted into a RemoteException (even then 
 I'm not sure it should be converted).
 
 I think the same goes for RuntimeExceptions, but I would have to check 
 the spec on that.
 
 I am willing to make this change to LogInterceptor, but I don't know 
 where to change the protocol code (which should convert the exception).
 
 -dain
 
 
 ___
 
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 Jboss-development mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-development
 


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development