Doug Kohlert <Doug.Kohlert_at_Sun.COM> writes:
>>I use JAX-WS 2.0 and try to implement a simple client accounting using
>>SOAP handlers. How can a service-side SOAP handler determine the
>>requester's address (IP/FQDN)?
>>
> If you get the MessageContext there are a number of HTTP properties
> you have access to.
[ ... ]
Thanks. Properties SERVLET_* are exactly what I need, but they are not
yet documented in javadoc. Yes, yes, I know, sources are documentation
too and I will read them before asking stupid questions ;-))
>>2. The only operation of BatchCurrencyConverter calls CurrencyConverter,
>> and every invocation of this operation is accompanied by a refetching
>> of CurrencyConverter's WSDL document. Why? Can it be somehow
>> reconfigured to fetch the WSDL document only once, e.g. immediately
>> after the initialization of the web service's servlet?
>>
> How does your BatchCurrenclyConverter get the proxy for
> CurrencyConverter? If it keeps getting a new one this will happen, if
> it caches it, I think the problem will be solved.
Yes, transforming the proxy to a singleton-like variable helps. Thank you.
--
rnd.