dev@jax-ws.java.net

Re: Async handler, bug or feature?

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Wed, 01 Mar 2006 11:28:53 +0100

Oleksiy Stashok wrote:
> On client side when response come to async. handler (implementation of
> AsyncHandler interface),
> parameter Response<> that is passed to callback method
> handleResponse() contains not response wrapper, but essentially return
> value.
>
> In other words:
>
> public void handleResponse (Response<AddNumbersResponse>
> response) {
> try {
> output = response.get ();
> System.out.println(output.getClass().getName()); //
> output java.lang.Integer, but not expected
> async.client.AddNumbersResponse
> } catch (ExecutionException e) {
> } catch (InterruptedException e) {
> }
> }
>
> "async addNumbers sample" from old jaxws implementation will make
> output "java.lang.Integer" rather than "async.client.AddNumbersResponse".
>
> Is this feature of JAX-WS-REARH of its some bug?
>
Looks like its bug - either in the generated code or runtime. I think
the generated interface by wsimport should have Response<Integer> in
this case rather than Response<AddNumbersResponse>. This is something
that would need clarification or more closer look at jaxws 2.0 spec.
Please file an issue so that its tracked.

thanks,

-vivek.
> Thanks.
> WBR,
> Alexey
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>

-- 
Vivek Pandey
Web Services Standards and Technologies
Sun Microsystems Inc.