All,
I am trying to implement a simple route endpoint that will result in message
stats logged every 10s, with an initial 60s delay and stats should be
displayed even if there isn't any message traffic.

--I followed this convention:--

http://camel.apache.org/log.html

--I put together this route:--

            <route id="TwitterToNERV">
                <from id="TwitterConsumer" uri="twitterConsumer" />
                
                <to id="streamOut" uri="stream:out" />
                
                <to
uri="log:whatDoIputHere?level=DEBUG&amp;groupInterval=100&amp;groupDelay=600&amp;groupActiveOnly=false;"
/>
                <to uri="webappWebsocketEndpointObject" />
            </route>

--This bean:--
        <bean id="logFormatter"
class="com.softwareag.eda.nerv.example.twitter.TwitterToNERVCustomExchangeFormatter"
/>

--This class:--

public class TwitterToNERVCustomExchangeFormatter implements
ExchangeFormatter {

        @Override
        public String format(Exchange arg0) {
                // TODO Auto-generated method stub
                System.out.println("here2");
                return "here";
        }
}


The route and streamout is working, yet the log out is not. I think I am
missing something basic here, as no output is displayed in the log. The app
is running as a webapp in tomcat.



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-log-tp5744520.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to