Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52D3510928 for ; Wed, 9 Jul 2014 15:34:48 +0000 (UTC) Received: (qmail 20918 invoked by uid 500); 9 Jul 2014 15:34:48 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 20868 invoked by uid 500); 9 Jul 2014 15:34:48 -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 20856 invoked by uid 99); 9 Jul 2014 15:34:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 15:34:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ugo.landini@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 15:34:43 +0000 Received: by mail-wi0-f169.google.com with SMTP id hi2so3006436wib.4 for ; Wed, 09 Jul 2014 08:34:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=cBVyiU4OWGC/kIRMP8Xw2a0kcvNSNmlvYCrRgeTlZuw=; b=x4LEy8Hqt4jj2GLUF7LUa4q7eBO6miogqdzagAjNLlbbG6WzsZM0vYbqGnrBT1Af0P wUlb/pAVwLNk2HQyiTxzGeKEH162MCWXsFgD1faNcOgLzGmcRLQu8Sj7Ps0cPDkTuk0c A0BXM5aA7406Wx+hR2xJ3r8n6our+KOc5376BvjwteKsClMaaQPW9hvDRkSIA7+nTADD xGXnC+/dK27h7WFiMdAKgsszs5jhmH5dM7fRukP6NZCHLhLutkR8Zq8syqXyTAm8Tmbt tE0p1furfZmibK29gNQ+L55Nfe5wlNtFP73Vna6yMNgitOwmDabDCPB5hNlRHZ4z52i1 OMkg== MIME-Version: 1.0 X-Received: by 10.180.206.144 with SMTP id lo16mr12241970wic.52.1404920062033; Wed, 09 Jul 2014 08:34:22 -0700 (PDT) Received: by 10.216.46.202 with HTTP; Wed, 9 Jul 2014 08:34:21 -0700 (PDT) In-Reply-To: References: <1404479284253-5753363.post@n5.nabble.com> Date: Wed, 9 Jul 2014 17:34:21 +0200 Message-ID: Subject: Re: An idea of new camel-cache endpoint From: ugol To: "dev@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org We have two options: 1. code directly against JCache (JSR 107) pro: out of the box integration with JSR 107 compliant cache providers cons: doesn't work with every provider. JCache API don't cover lot of use cases (it's temporary in nature for example, while Infinispan is more on the "grid" side) 2. have a camel cache api (loosely based on JSR 107 / 347) pro: can cover every use case and can be implemented cons: integration with cache providers not out of the box 1. is really easy and straightforward, but I don't know if it would be feature rich enough to "deprecate" more specific components On Wed, Jul 9, 2014 at 4:55 PM, Matt Sicker wrote: > Technically components like camel-jms/camel-sjms, camel-jdbc/camel-sql, > camel-jpa, camel-jcr, etc., all code to JSRs instead of particular > implementations. I don't think I've seen an equivalent for camel-camel ;) > > Using the JSRs for a generic cache component would be nice because EHCache > and Infinispan both already support the JCache API, and Hazelcast is > working on adding support for it. That would make a better candidate for > the component named "camel-cache" as you could still even use EHCache with > it! > > > On 9 July 2014 09:47, ugol wrote: > >> Do we have any example of a generic camel component with different >> implementations? >> Or should be camel-cache just a set of common API? >> >> On Wed, Jul 9, 2014 at 4:08 PM, ugol wrote: >> >> I like the idea of having some common api for caching in Camel. And >> >> making sure that this is the easiest and a good way to use caching. >> >> >> >> Altough there is also the jcache spec that Matt talks about. Not sure >> >> where that spec fits into this picture? >> > >> > In my idea, it's just that JSR107 and JSR 347 already cover what >> > caches/grids have in common, so we can use those JSR as an inspiration >> > for a good design. >> > >> >> Okay back to the cache. Sure guys we love contributions and surely I >> >> would like to see this moving forward. >> > >> > I'll see what I can do next weeks >> > >> > -- >> > uL >> > >> > Pragmatist >> > http://blog.ugolandini.com >> > http://www.flickr.com/photos/ugol/ >> >> >> >> -- >> uL >> >> Pragmatist >> http://blog.ugolandini.com >> http://www.flickr.com/photos/ugol/ >> > > > > -- > Matt Sicker -- uL Pragmatist http://blog.ugolandini.com http://www.flickr.com/photos/ugol/