Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 98DB5200B95 for ; Mon, 12 Sep 2016 16:29:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 977AE160AB2; Mon, 12 Sep 2016 14:29:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1491C160AC8 for ; Mon, 12 Sep 2016 16:29:21 +0200 (CEST) Received: (qmail 15476 invoked by uid 500); 12 Sep 2016 14:29:20 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 15328 invoked by uid 99); 12 Sep 2016 14:29:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2016 14:29:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AD61C2C1B81 for ; Mon, 12 Sep 2016 14:29:20 +0000 (UTC) Date: Mon, 12 Sep 2016 14:29:20 +0000 (UTC) From: "Luca Burgazzoli (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-7832) create a java 8 demo of RX to show typesafe filtering and transforming of messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 12 Sep 2016 14:29:22 -0000 [ https://issues.apache.org/jira/browse/CAMEL-7832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luca Burgazzoli resolved CAMEL-7832. ------------------------------------ Resolution: Fixed > create a java 8 demo of RX to show typesafe filtering and transforming of messages > ---------------------------------------------------------------------------------- > > Key: CAMEL-7832 > URL: https://issues.apache.org/jira/browse/CAMEL-7832 > Project: Camel > Issue Type: New Feature > Components: examples > Reporter: james strachan > Assignee: Luca Burgazzoli > Fix For: 2.18.0 > > > Camel RX can already do typesafe processing of messages > http://camel.apache.org/rx.html > it'd be nice to show a demo using Java 8 and lambdas. e.g. like this... > {code} > ReactiveCamel rx = new ReactiveCamel(camelContext); > Observable observable = rx.toObservable("seda:orders", Order.class); > > // now lets filter and map using Java 8 > Observable largeOrderIds = observable. > filter(order -> order.getAmount() > 100.0). > map(order -> order.getId()); > > rx.sendTo(observable, "activemq:MyQueue"); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)