Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Multiple Implementations

$
0
0
I am creating WSDL based web service for an application I am working on...
The service though needs to operate in two "modes" in one mode it will take
requests and process them (pretty much standard ws stuff) but sometimes I'd
like to swap the implementation with an implementation that simply acts as
a proxy (or maybe redirects) for the client.

Now a "naive" and tedious implementation would be to create an
implementation of my service interface that just does something like:

public void function1(){
if(proxyMode){
proxyDelegate.function1();
} else {
realDelegate.function1();

I was thinking / hoping there'd be a more CXF way to accomplish in a
cleaner and less tedious way.

Any help much appreciated.

thanks,

steve

Viewing all articles
Browse latest Browse all 5648

Trending Articles