Hi,
I think that the answer of this question is wrong, because a non-asynchronous method can't throw any exception, in opposite of what is explained regarding the second choice. Because we can't throw a java.rmi.RemoteException
About Question enthuware.oce-ejbd.v6.2.402 :
Moderator: admin
-
- Posts: 31
- Joined: Sun Dec 27, 2015 1:47 pm
- Contact:
-
- Site Admin
- Posts: 10385
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.402 :
Actually, it can throw any exception. Though RemoteException is generally not recommended to be thrown anymore, there is no technical restriction.
Paul.
Paul.
-
- Posts: 31
- Joined: Sun Dec 27, 2015 1:47 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.402 :
There one single restriction 
It's regarding session bean exposing no-interface view, as per section 4.9.8 in the spec:

It's regarding session bean exposing no-interface view, as per section 4.9.8 in the spec:
The throws clause of a bean class method exposed through the no-interface view must not include the java.rmi.RemoteException
-
- Site Admin
- Posts: 10385
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.402 :
Yes, but the question is not talking about no-interface view. It is clearly says, "...can be exposed in a business interface (remote or local)... "
-
- Posts: 31
- Joined: Sun Dec 27, 2015 1:47 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.402 :
You are right, Thanks Paul
Who is online
Users browsing this forum: No registered users and 3 guests