-
1. Re: Throw java.rmi.RemoteException does not rollback EJB CMT
wolfc Nov 18, 2014 7:00 AM (in response to n-agetsuma)1 of 1 people found this helpfulEJB 3.2 FR 9.1.1:
An application exception may be defined in the throws clause of a method of an enterprise bean’s
business interface, no-interface view, home interface, component interface, or web service endpoint, or
of a message listener method.
An application exception class can either be a subclass (direct or indirect) of java.lang.Excep-
tion (i.e., a “checked exception”), or a subclass of the java.lang.RuntimeException (an
“unchecked exception”). An application exception may not be a subclass of the java.rmi.Remote-
Exception. The java.rmi.RemoteException and its subclasses are reserved for system
exceptions.Given that text I would say the reproducer is in violation of the spec and the server should throw a deployment exception.
For the time being it might be better not to patch this as it would break apps depending on that violation.
-
2. Re: Re: Throw java.rmi.RemoteException does not rollback EJB CMT
n-agetsuma Dec 1, 2014 10:00 PM (in response to wolfc)@Carlo de Wolf Thank you for your advice !
Given that text I would say the reproducer is in violation of the spec and the server should throw a deployment exception.
I tried create patch based on advice.
When this patch is applied, and deploy ejb localview has "throws java.rmi.RemoteException", server throw a deployment exception at the time of deploy.
Please confirm patch of attachment is right.