Hi Not sure we follow.
You want a TCP listener that supports HL7 and "something else" at the same time? If so you would need to extend the hl7 codec to "figure out when to speak HL7 and when to speak something else". Or write your own codec or something else. Just seems a bit odd though. Why not have 2 listeners. One for HL7 and another for "something else". On Wed, Sep 18, 2013 at 12:51 PM, Bartłomiej Buczek <[email protected]> wrote: > Hi, > I'm having a problem with getting client socket connection or with > understanding how camel should work. Basically I have spring configuration > in which I placed: > <camel:camelContext id="Camel"> > <camel:package>com.hl7.test</camel:package> > <camel:template id="producerTemplate"/> > <camel:endpoint id="hl7Listener" > uri="mina2:tcp://192.168.1.195:8812?sync=true&codec=#hl7codec"/> > </camel:camelContext> > > and a route: > from("hl7Listener").to("lookupService"); > > > Now I'm connecting client and if client send anything I can pick it up in > lokupService and client in case of HL7 receives HL7 ACK message which works > great. > But I would like to send something else also to that connected client. > Client connects and is connected for whole the time. It sends sometimes > messages and get ACK messages as response. But how can I send anything else > to that client? Is there anyway to do it? > I simply want to be able to speak with client so on the base on > client/server connection. I will have only 1 client connected. > -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
