Hi

Isn't there more details about why syslog cannot be created? Also do
you have the JARs on the classpath for it? And what version of Camel
do you use?

On Wed, Dec 10, 2014 at 7:16 PM, mtod09 <m...@thetods.net> wrote:
> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to