Hi

I think Mina uses sl4j for logging, so you might need to add some of these 
.jars as well to get it to log.

You can also set the minalogger=true option on the URI to add more logging.
http://activemq.apache.org/camel/mina.html

Are you sure you got all the needed jars by mina?


Camel should log at INFO level when it starts the mina consumer that listen for 
incoming socket requests

Binding to server address: " + address + " using acceptor: " + acceptor

So you should get the log line above in your logs.

If there is still some issues then I can try create a XML route with mina to 
see if I get any problems.  



Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: Jeff V [mailto:[EMAIL PROTECTED] 
Sent: 6. november 2008 16:14
To: [email protected]
Subject: Re: Usage of Mina in camelContext for TCP loop.


Thanks James.

I have since move to camel 1.4 components, cleared my data folder. (great
tip by the way, Claus)

However, I still cannot seem to get a mina:tcp socket listener working. I
open "telnet localhost 42000" and no connection is established.

Does anyone have a working example of an XML defined mina:tcp socket?

    <camelContext id="camel"
xmlns="http://activemq.apache.org/camel/schema/spring";>

        <package>com.myco.codec</package>

        <endpoint id="tcp_A"
uri="mina:tcp://localhost:42000?textline=true&amp;sync=false" />
        <endpoint id="tcp_B"
uri="mina:tcp://localhost:42001?textline=true&amp;sync=false" />
                
        <route>
            <from uri="activemq:tcp_A"/>
            <to uri="activemq:qA"/>
        </route>
        <route>
            <from uri="activemq:qA"/>
            <to uri="activemq:tcp_B"/>
        </route>
    </camelContext>

Here is my log if it helps: 
http://www.nabble.com/file/p20362961/activemq.log activemq.log 

I have camel logging set to DEBUG. Anyone know the mina log class? I tried:
"log4j.logger.org.apache.mina". Doesn't seem to work.

Thanks again! I know this is getting arduous.

-- 
View this message in context: 
http://www.nabble.com/Usage-of-Mina-in-camelContext-for-TCP-loop.-tp20348095s22882p20362961.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to