Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 79762 invoked from network); 26 Oct 2010 21:52:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Oct 2010 21:52:03 -0000 Received: (qmail 9131 invoked by uid 500); 26 Oct 2010 21:52:03 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 9108 invoked by uid 500); 26 Oct 2010 21:52:03 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 9100 invoked by uid 500); 26 Oct 2010 21:52:03 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 9097 invoked by uid 99); 26 Oct 2010 21:52:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 21:52:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 21:52:02 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9QLpeMP026230 for ; Tue, 26 Oct 2010 21:51:42 GMT Message-ID: <9945278.69101288129900416.JavaMail.jira@thor> Date: Tue, 26 Oct 2010 17:51:40 -0400 (EDT) From: "Johan Edstrom (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-3267) camel-syslog - DataFormat, TypeConverters, Spring DSL enhancments, test and an added Netty TypeConverter In-Reply-To: <23023967.65441287781660373.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-3267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62852#action_62852 ] Johan Edstrom commented on CAMEL-3267: -------------------------------------- Cleaning up this patch for inclusion in 2.6-SNAPSHOT > camel-syslog - DataFormat, TypeConverters, Spring DSL enhancments, test and an added Netty TypeConverter > -------------------------------------------------------------------------------------------------------- > > Key: CAMEL-3267 > URL: https://issues.apache.org/activemq/browse/CAMEL-3267 > Project: Apache Camel > Issue Type: New Feature > Reporter: Johan Edstrom > Priority: Minor > Fix For: 2.6.0 > > > Allows camel to deal with BSD Syslog messages over UDP. > Patch located at : http://github.com/seijoed/camel/commit/b18016fff2ce37c2b47f5de17b4852648b6df5a7 > Provides marshal / unmarshal and spring language. > Example route : > {code:xml} > camelContext id="myCamel" xmlns="http://camel.apache.org/schema/spring"> > > > > > > > > > > > > {code} > Example 2 > {code} > public void configure() throws Exception { > context.setTracing(true); > DataFormat syslogDataFormat = new Rfc3164SyslogDataFormat(); > // we setup a Syslog listener on a random port. > from("netty:udp://127.0.0.1:" + serverPort + "?sync=false&allowDefaultCodec=false") > .unmarshal(syslogDataFormat).process(new Processor() { > public void process(Exchange ex) { > assertTrue(ex.getIn().getBody() instanceof SyslogMessage); > } > }).to("mock:syslogReceiver"). > marshal(syslogDataFormat).to("mock:syslogReceiver2"); > } > }; > {code} > Example 3: > {code} > public void configure() throws Exception { > //context.setTracing(true); > DataFormat syslogDataFormat = new Rfc3164SyslogDataFormat(); > // we setup a Syslog listener on a random port. > from("mina:udp://127.0.0.1:" + serverPort) > .unmarshal(syslogDataFormat).process(new Processor() { > public void process(Exchange ex) { > assertTrue(ex.getIn().getBody() instanceof SyslogMessage); > } > }).to("mock:syslogReceiver"). > marshal(syslogDataFormat).to("mock:syslogReceiver2"); > } > }; > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.