These requirements look like you would benefit from an ESB like Mule or ServiceMix. For the proprietary BEA AquaLogic Service Bus, for example, the tutorials here[1] are very similar to your requirements.
Glen [1] http://edocs.bea.com/alsb/docs30/tutorial/index.html 2008-06-05 sha_cxf wrote: > I want to write a xml message router using cxf but I am not very clear about > the internal working of cxf. > > A sample scenario that I want to implement is something like this - > > There are two services - ADD (hosted on host1:9000 and host1:9001) & > SUBTRACT (hosted on host2:9000 and host2:9001). > > The router listening on host3:7777 would decide the target service for the > xml message (not bound to any schema) based on the xml message (using > xquery). > > After deciding the target service it would decide on the specific > connection(host*:9000 or host*:9001) in say a roundrobin fashion.Then fire > that message to that service. > > Receive a response from the service and pass it to the client. > > How can it be done using CXF? >
