Since One way method can not declare checked exception or return value , I did not understand the below statement (in bold) in the explaination . Can you please explain?
4.3 Annotation: javax.jws.Oneway Indicates that the given web method has only an input message and no output. Typically, a oneway method returns the thread of control to the calling application prior to executing the actual business method. A JSR-181 processor is REQUIRED to report an error if an operation marked @Oneway has a return value, declares any checked exceptions or has any INOUT or OUT parameters.
Will the app server allow us to deploy such OneWay methods (Declaring checked exceptions or return values) ?
About Question enthuware.ocejws.v6.2.124 :
Moderators: Site Manager, fjwalraven
-
- Posts: 33
- Joined: Sat Nov 24, 2012 8:52 am
- Contact:
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.124 :
No.Will the app server allow us to deploy such OneWay methods (Declaring checked exceptions or return values) ?
You will typically something like this:
Regards,WARNING: Deployment failed
com.sun.xml.ws.model.RuntimeModelerException: Oneway operation should not throw any checked exceptions
Frits
Who is online
Users browsing this forum: No registered users and 5 guests