About Question enthuware.ocejws.v6.2.124 :

Moderators: Site Manager, fjwalraven

Post Reply
rkbansal83
Posts: 33
Joined: Sat Nov 24, 2012 8:52 am
Contact:

About Question enthuware.ocejws.v6.2.124 :

Post by rkbansal83 »

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) ?

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

Re: About Question enthuware.ocejws.v6.2.124 :

Post by fjwalraven »

Will the app server allow us to deploy such OneWay methods (Declaring checked exceptions or return values) ?
No.

You will typically something like this:
WARNING: Deployment failed
com.sun.xml.ws.model.RuntimeModelerException: Oneway operation should not throw any checked exceptions
Regards,
Frits

Post Reply

Who is online

Users browsing this forum: No registered users and 66 guests