ejb@glassfish.java.net

Re: why 2 constructors in EJBAccessException and 3 in AccessLocalException?

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Mon, 27 Mar 2006 10:39:40 -0500

Cheng Fang wrote:

>Ken,
>
>Thanks for explaining this. I didn't notice they were created at
>different versions.
>
Yup, AccessLocalException was added when the local EJB view was added --
in EJB 2.0 (J2EE 1.3)

 --ken

>
>-- Cheng
>
>On Mon, 27 Mar 2006, Kenneth Saks wrote:
>
>
>
>>Cheng Fang wrote:
>>
>>
>>
>>>Just curious and it's no big deal, why EJBAccessException has 2
>>>constructors:
>>>EJBAccessException()
>>>EJBAccessException(String),
>>>
>>>while
>>>
>>>AccessLocalException has 3:
>>>AccessLocalException()
>>>AccessLocalException(String)
>>>AccessLocalException(String message, Exception ex)
>>>
>>>It seems reasonable to also add (String, Exception/Throwable) to
>>>EJBAccessException.
>>>
>>>
>>>
>>AccessLocalException is one of the original EJB exceptions. It was
>>added before initCause() was added to java.lang.Throwable. initCause
>>is the preferable way to attached chained exception information to a new
>>exception.
>>
>> --ken
>>
>>
>>
>>>-- Cheng
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
>>>For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>
>
>