L.S.,

And you probably also need to add the same parameter to the .to("mina:tcp://localhost:10000") in the same RouteBuilder to get the original demo working again.

Gert

Claus Ibsen wrote:
Hi

Yes of course you need to set textline=true as an option.
http://activemq.apache.org/camel/mina.html

    public void configure() {           
from("mina:tcp://localhost:10000&textline=true") .to("jbi:endpoint:http://www.blah.com/blah/jms";);


Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Gert Vanthienen [mailto:[EMAIL PROTECTED] Sent: 17. juli 2008 09:50
To: [email protected]
Subject: Re: MINA in Camel Route in ServiceMix

Claus,

I don't think this is related to JBI, but rather to the fact that there is no codec specified on the mina endpoint. Wouldn't you need something extra there to be able to send/receive plain text in a telnet style as this user wants to do? In our Camel tutorial, we do have a working example like this with MINA, but it sends some binary format over the wire (serialized objects?) and you can't just send it plain text in a telnet terminal.

Gert

Claus Ibsen wrote:
Hi

Could you try raising this question on the servicemix forum?
Have you tried to enable more logging and see what is "happening?"

You could try changing the to endpoint to a log to see if it's logged. Will log 
at INFO level by default.

from("mina:tcp://localhost:10000") .to("log:foo");

Then at least we know the camel part is working and that is able to read the 
data and pass the payload to the next node in the route path.



Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Ridire123 [mailto:[EMAIL PROTECTED] Sent: 15. juli 2008 21:58
To: [email protected]
Subject: MINA in Camel Route in ServiceMix


I'm attempting to use MINA in a Camel route in ServiceMix to act as a TCP
binding component.  My code looks something like this:
public class CamelRoute extends RouteBuilder {

    public void configure() {           
from("mina:tcp://localhost:10000") .to("jbi:endpoint:http://www.blah.com/blah/jms";);
    }
}

The problem is nothing every seems to come from MINA.  The client I am using
to send data over the socket connects fine, sends it's data, and closes the
socket with no exceptions, but I still see nothing from MINA.  In this
particular case, should it matter, the endpoint I am sending to is a JMS
Provider.

Am I simply implementing MINA incorrectly?

Thanks in advance for any help!



Reply via email to