users@jax-rpc.java.net

Re: usage (reusage) of javax.xml.rpc.Call object correct

From: Kathy Walsh <Kathleen.Walsh_at_sun.com>
Date: Wed, 09 Nov 2005 09:01:10 -0500

Merten-
This is an appropriate use case-
Kathy

Merten Schumann wrote:

>I'm wondering if my usage of javax.xml.rpc.Call object is correct.
>
>I do create a one and only Call object to fire invocations of the same
>or DIFFERENT web service methods. Not for concurrent invocations, I use
>the Call object in a synchronized way. I prepare the Call object each
>time this way
>
>call.removeAllParameters();
>call.setOperationName(operationName);
>call.setParameter...
>call.setReturnType...
>
>It seems to work, even for web service methods with different return
>types and all. But, I'm not sure if it's really ok to reuse the Call
>object. Should I create a separate Call object for each invocation of a
>web service method or is my usage ok?
>
>Thanx
> Merten
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>