I have an application (say, TcpApp) sending pure TCP messages (i.e., no SOAP, no envelope ... just a raw string or even bytes). I need to connect ESB to listen those messages over a specific port (say, 3333), and make some mediation (for now, do nothing but logging is enough). I think it would be a good idea to make an ActiveMQ queue from TcpApp and then to make a proxy service from JMS in the ESB (instead of connect directly the ESB to the TcpApp). I read several samples and answers, but always the contect is XML, and TCP is only the transport. What sometime happens is that applications send no special formats over TCP (sometime called telegrams). I tried to change the content type, but still the ESB refuses to read the TCP port.
<parameter name="transport.tcp.contentType">text/plain</parameter>
May be I'm still confuse with the architecture of the solution, but I think a Broker, or an ESB like WSO2, should work is this case as a mediator from this TcpApp. I prefer to disscus the solution before to get the real config to make it work. All comments, welcomed!