Would it be possible to have the cxf codegen create  "void funcs()" to 
@OneWay?  We auto-generate all our code using the CXF codegen maven plugin, so 
it will be tough to add @OneWay manually.

If you have it handy, could you share specs doc?

Thanks...


----- Original Message ----
From: Daniel Kulp <[email protected]>
To: [email protected]
Cc: Coder One <[email protected]>
Sent: Tue, March 9, 2010 12:10:15 AM
Subject: Re: CXF 2.2.5 isOneWay() Bug?

On Tuesday 09 March 2010 12:39:57 am Coder One wrote:
> Inside a subclass of AbstractConduit  and the function public void
> prepare(Message message),
> 
> message.getExchange().isOneWay() is never true.  It's always false even if
> the function is a "void say(SayRequest req)"
> 
> Is this a bug?  How would I detect a function is "void" and hence really
> can be treated as one-way/non-blocking?
> 
> Thank-you...

Per spec, a void return is still not considered a one way call.  It still 
needs to have a response message.  If you add a @Oneway annotation to the 
method, that will mark it as a oneway and the exchange flag should then be set 
properly.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog



    

Reply via email to