Hi,

Did you see the camel route posted by Scott... socat is used just to see
what is happening with messages on the route and between the endpoints.

In your case, this is what you will need to do

    <camelContext xmlns="http://camel.apache.org/schema/spring";
id="camelContext">
        <route id="minaRoute">
            <from
uri="mina:tcp://localhost:6789?sync=true&amp;textline=true"/>
            <to uri="log:route2"/>
            <to
uri="mina:tcp://localhost:7890?sync=true&amp;textline=true"/>
        </route>
    </camelContext>

In you code, you need to have your client code sent to tcp://localhost:6789
& your server code should be listening on port 7890. At the moment it is
listening on 6789. The proxy has to mediate between client and server.

Hope this helps...

Ashwin...


-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/tcp-proxy-route-tp4332461p4561599.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to