On Wednesday 28 January 2009 4:53:27 am Paul D'Arcy wrote:
> The scenario is web service notifications using back to back web services
> in a subscribe/notify type setup. However, with CXF for every subscribe
> received at the server a consumer proxy which will be used to send
> notifications back to client. However, we need a consumer proxy per
> subscription, which means there is a big memory drain when subscription
> numbers increase. Is there a way to utilize CXF such that 1 consumer proxy
> can be used to issue notifications to multiple clients seen as the only
> real difference between the clients is their endpoint information?

The JAX-WS spec covers this.   Basically:

((BindingProvider)proxy).getRequestContext().put(
    BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
    "http://blah/blah/blah";);

Note: there IS  a thread safety issue, but see:
http://cxf.apache.org/faq.html#FAQ-AreJAXWSclientproxiesthreadsafe%253F



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

Reply via email to