About Question enthuware.oce-ejbd.v6.2.399 :
Posted: Mon Apr 25, 2011 3:13 pm
methodX doesnt define to throw Exception:
12.3.1Exceptions
Business method interceptor methods may throw runtime exceptions or application exceptions that are allowed in the throws clause of the business method.
AroundInvoke methods are allowed to catch and suppress exceptions and recover by calling proceed(). AroundInvoke methods are allowed to throw runtime exceptions or any checked exceptions that the business method allows within its throws clause.
does it mean, the Interceptor can declarate to throw an Exception but it may not really throw it????
if so, why is that??
12.3.1Exceptions
Business method interceptor methods may throw runtime exceptions or application exceptions that are allowed in the throws clause of the business method.
AroundInvoke methods are allowed to catch and suppress exceptions and recover by calling proceed(). AroundInvoke methods are allowed to throw runtime exceptions or any checked exceptions that the business method allows within its throws clause.
does it mean, the Interceptor can declarate to throw an Exception but it may not really throw it????
if so, why is that??