Thanks

I have added the Jar's things are looking better.
The route is running now when I send it a formatted message I get the
following error:

*Message:* <2>Jul 10 12:00:00 192.168.1.1 SyslogGen MESSAGE TEXT

ERROR | Failed delivery for (MessageId:
ID:FM-WLTP082-56545-1418751719052-7:1:1:1:1 on ExchangeId:
ID-FM-WLTP082-56542-1418751718711-0-1). Exhausted after delivery attempt: 1
caught: org.apache.camel.TypeConversionException: Error during type
conversion from type: java.lang.String to the required type:
org.apache.camel.component.syslog.SyslogMessage with value <2>Jul 10
12:00:00 192.168.1.1 SyslogGen MESSAGE TEXT due java.lang.NoSuchMethodError:
org.apache.camel.component.syslog.SyslogMessage.setTimestamp(Ljava/util/Calendar;)V


Seems like I'm missing something.


My Route:

<?xml version="1.0" encoding="UTF-8"?>


<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel="http://camel.apache.org/schema/spring";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>

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

        <camel:dataFormats>
            <camel:syslog id="mySyslog"/>
        </camel:dataFormats>

        <camel:route>
            <camel:from uri="activemq:queue:syslogMessages"/>
            <camel:marshal ref="mySyslog"/>
            <camel:to uri="mina:udp://localhost:514"/>
        </camel:route>

    </camel:camelContext>

</beans>

Thanks

Mike



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

Reply via email to