Hi everybody, I have to create an interface which should communicate to a server over tcp/ip. After an initial registration request, the server will publish all upcoming events on the same socket (and channel).
My first idea was to create two routes, one for the request the other one acting as a listener: String serverUri = "netty4:tcp://localhost:30600?clientMode=true&decoders=#length-decoder,#string-decoder&encoders=#length-encoder,#string-encoder"; from("direct:start") .setBody(constant("registrationBody")) .to(ExchangePattern.OutOnly, serverUri) ; from(serverUri) .process(exchange -> System.out.println("Incoming message!")) .to("file:test/output?fileName=updates.xml&fileExist=Append") ; This solution does not work, because each route establish a separate connection on a different channel. Does anyone know how to configure such a communication? My limitation is, that I'm working on apache-servicemix 7.0.0 with camel 2.16.4. Thanks for your help, Jörg