I would like to setup a ActiveMQ queue for syslog messages and use Camel to
send to the Syslog Server.

I looked at the following link but I'm unable to get this to work.

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

I'm using Spring for the configuration.

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

        
        <bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
                <property name="locations">
                        
<value>file:${activemq.conf}/credentials.properties</value>
                </property>
        </bean>

        <bean id="myDeadLetterErrorHandler"
class="org.apache.camel.builder.DeadLetterChannelBuilder">
                <property name="deadLetterUri" value="jms:queue:dead"/>
                <property name="redeliveryPolicy" 
ref="myRedeliveryPolicyConfig"/>
        </bean>

        <bean id="myRedeliveryPolicyConfig"
class="org.apache.camel.processor.RedeliveryPolicy">
                <property name="maximumRedeliveries" value="3"/>
                <property name="redeliveryDelay" value="5000"/>
        </bean>

        <camelContext id="Syslog" trace="true" streamCache="true"
xmlns="http://camel.apache.org/schema/spring";
xmlns:km="http://xsdrepo.foundationmedicine.com/messaging/esb";> 
                <dataFormats>
                        <syslog id="mySyslog"/>
                </dataFormats>
                <route>
                        <from uri="activemq:queue:syslogMessages"/>
                        <marshal ref="mySyslog"/>
                        <to uri="mina:udp://appdev002.corp.local:10514"/>
                </route>        
        </camelContext>
</beans>

I keep getting an error loading the datatype.

"because of Data format 'syslog' could not be created"

Any help would be appreciated.

Mike







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

Reply via email to