Re: tcp proxy route

2011-07-11 Thread Claus Ibsen
Hi You can check this guide how to deploy to ServiceMix http://fusesource.com/docs/esb/4.4/esb_deploy_osgi/index.html On Sun, Jul 10, 2011 at 12:52 PM, Doraemon wrote: > Now I must deploy this TCP proxy(camel-example-tcpipproxy) into servicemix, > as the picture shows below. > > Could you tell m

Re: tcp proxy route

2011-07-10 Thread Doraemon
Now I must deploy this TCP proxy(camel-example-tcpipproxy) into servicemix, as the picture shows below. Could you tell me how to do that in details ? http://camel.465427.n5.nabble.com/file/n4570177/Untitled.png Thank you, sincerely. Best wishes. Doraemon -- View this message in context:

Re: tcp proxy route

2011-07-08 Thread Doraemon
Hi, Willem. I need to deploy the TCP proxy(camel-example-tcpipproxy) into servicemix. Could you tell me how to do that in details ? Thank you, sincerely. Doraemon -- View this message in context: http://camel.465427.n5.nabble.com/tcp-proxy-route-tp4332461p4563619.html Sent from the Camel -

Re: tcp proxy route

2011-07-08 Thread Doraemon
By the way, my ServiceMix is 3.3.2 edition. Best wishes. -- View this message in context: http://camel.465427.n5.nabble.com/tcp-proxy-route-tp4332461p4563747.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: tcp proxy route

2011-07-07 Thread Doraemon
Hi, Claus. I need to deploy the TCP proxy(camel-example-tcpipproxy) into servicemix. Could you tell me how to do that in details ? Thank you, sincerely. Doraemon -- View this message in context: http://camel.465427.n5.nabble.com/tcp-proxy-route-tp4332461p4563560.html Sent from the Camel -

Re: tcp proxy route

2011-07-07 Thread Doraemon
Now I must deploy this TCP proxy(camel-example-tcpipproxy) into servicemix, as the picture shows below. Could you tell me how to do that in details ? http://camel.465427.n5.nabble.com/file/n4563555/Untitled.png Thank you, sincerely. Best wishes. Doraemon -- View this message in context: h

Re: tcp proxy route

2011-07-07 Thread Doraemon
OK! I have tried again and achieved it.I am very excited.oh yeah.. Thank you for your great help, Ashwin. Could you tell me your msn or email ? Best wishes.^_^ Doraemon -- View this message in context: http://camel.465427.n5.nabble.com/tcp-proxy-route-tp4332461p4562182.html Sent from the C

Re: tcp proxy route

2011-07-07 Thread Doraemon
"*In command window 2: run the following command > mvn camel:run *" I have tried the 3 steps, but in the second step, it built error. So I failed to run my example. Could you give me some solutions ? http://camel.465427.n5.nabble.com/file/n4562015/camel01.png http://camel.465427.n5.nabble.com

Re: tcp proxy route

2011-07-07 Thread Ashwin Karpe
Ah, ok.. This one is not too bad. You just need to edit your pm.xml and add the following set of dependencies under the tag org.slf4j slf4j-api 1.5.11 org.slf4j slf4j-log4j12 1.5.11 Then run "mvn clean" followed by "mvn camel:run"... Cheer

Re: tcp proxy route

2011-07-07 Thread Ashwin Karpe
Hi, Running it in Servicemix is a little more involved and it seems like you have not played with it much. For now, if all you are looking to do is run it, you should open 3 command windows In command window 3 : run your server > java TCPServer In command window 2: run the following comman

Re: tcp proxy route

2011-07-07 Thread Ashwin Karpe
Hi, Running it in Servicemix is a little more involved and it seems like you have not played with it much. For now, if all you are looking to do is run it, you should open 3 command windows In command window 3 : run your server > java TCPServer In command window 2: run the following comman

Re: tcp proxy route

2011-07-07 Thread Doraemon
It's very kind of you. Thank you for your patient explanation. ^_^ I tried Scott Cranton's camel-example-tcpipproxy, but it built error and failed to run. I ran camel-example-tcpipproxy in steps below: First, run *mvn camel:run* in camel-example-tcpipproxy root directory. Second, copy *.zip

Re: tcp proxy route

2011-07-07 Thread Ashwin Karpe
Hi, You can use the Camel context as is. The only thing I see changing is the TCPServer port which should be set to 7890. The camel route is a TCP proxy which sets up a message consumer and listens for a client request on port 6789 and when it receives a message from the TCPCLient, it logs the mes

Re: tcp proxy route

2011-07-07 Thread Doraemon
Thanks for posting your code, Ashwin. Newbies like me find it really useful. But I have some questions. 1. what *7890* port is uesd to ? what need I do is just change the code *...*, is all right ? need I change my tcp client code or tcp server code ? 2. After I change the code *...*,

Re: tcp proxy route

2011-07-07 Thread Ashwin Karpe
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 http://camel.apache.org/schema/spring"; id="camelContext">

Re: tcp proxy route

2011-07-07 Thread Doraemon
Yes, I have tried that. But Scott Cranton uses *socat* as both the back-end service (echo style) and as a client. I use *two java classes* as client and server. I have no idea how to invoke camel-example-tcpipproxy with my own client and server. Can you tell me ? Thank you ! -- View this messag

Re: tcp proxy route

2011-07-07 Thread Willem Jiang
Did you have a chance to try this[1] as Claus suggested before. [1]http://scottcranton.blogspot.com/2011/04/socat-is-so-cool.html On 7/7/11 4:56 PM, Doraemon wrote: Hello, I want to create a Tcp proxy with Camel and deploy this proxy into ServiceMix. http://camel.465427.n5.nabble.com/file/n4560

Re: tcp proxy route

2011-07-07 Thread Doraemon
Hello, I want to create a Tcp proxy with Camel and deploy this proxy into ServiceMix. http://camel.465427.n5.nabble.com/file/n4560390/Untitled.png Let the Tcp Client invoke Servicemix(Tcp Proxy), and ServiceMix(Tcp Proxy) can route the message to Tcp Server. Now I have completed the Tcp client and

Re: tcp proxy route

2011-07-07 Thread Doraemon
Hello, I want to create a Tcp proxy with Camel and deploy this proxy into ServiceMix. http://camel.465427.n5.nabble.com/file/n4560386/Untitled.png Let the Tcp Client invoke Servicemix(Tcp Proxy), and ServiceMix(Tcp Proxy) can route the message to Tcp Server. Now I have completed the Tcp client and

Re: tcp proxy route

2011-04-25 Thread samslara
Hello, More great information but I wasn't very clear about my followup, sorry. I wanted to know if there's a way to do non-plaintext tcp proxy connection via a camel route, ssl with just an arbitrary example. So when I tried to use the previous suggestion from Scott Cranton's blog for a came

Re: tcp proxy route

2011-04-24 Thread Claus Ibsen
And there is SSL example at camel-netty http://camel.apache.org/netty And an unit test here https://svn.apache.org/repos/asf/camel/trunk/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettySSLTest.java On Sun, Apr 24, 2011 at 3:59 PM, Claus Ibsen wrote: > On Sat, Apr 23, 2

Re: tcp proxy route

2011-04-24 Thread Claus Ibsen
On Sat, Apr 23, 2011 at 9:54 PM, samslara wrote: > Hello, thanks for the great information.  One follow up question though, if I > wanted to tunnel an ssl connection through a Camel route, either though > Netty or Mina, would I need to implement a special encoder/decoder or is > there something al

Re: tcp proxy route

2011-04-24 Thread Willem Jiang
I think there are other option, How about use stunnel directly ? [1]http://www.stunnel.org/ On 4/24/11 3:54 AM, samslara wrote: Hello, thanks for the great information. One follow up question though, if I wanted to tunnel an ssl connection through a Camel route, either though Netty or Mina, wou

Re: tcp proxy route

2011-04-23 Thread samslara
Hello, thanks for the great information. One follow up question though, if I wanted to tunnel an ssl connection through a Camel route, either though Netty or Mina, would I need to implement a special encoder/decoder or is there something already supplied to do this? Or is my line of thought compl

Re: tcp proxy route

2011-04-22 Thread Claus Ibsen
Yes thats possible. Here is a blog from Scott Cranton who wrote how to do that, although he uses Mina instead of Netty. http://scottcranton.blogspot.com/2011/04/socat-is-so-cool.html You should be able to use Netty as well. On Fri, Apr 22, 2011 at 9:07 AM, samslara wrote: > Hello, >  I'm wonder