Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCA7C9B54 for ; Tue, 10 Apr 2012 05:18:03 +0000 (UTC) Received: (qmail 18532 invoked by uid 500); 10 Apr 2012 05:18:03 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 18481 invoked by uid 500); 10 Apr 2012 05:18:03 -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 18460 invoked by uid 99); 10 Apr 2012 05:18:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 05:18:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 05:18:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2F387362BA7 for ; Tue, 10 Apr 2012 05:17:39 +0000 (UTC) Date: Tue, 10 Apr 2012 05:17:39 +0000 (UTC) From: "Woonsan Ko (Commented) (JIRA)" To: issues@camel.apache.org Message-ID: <945138858.6208.1334035059295.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1075080051.6202.1334034935274.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-5155) Support JCR Component as Consumer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250457#comment-13250457 ] Woonsan Ko commented on CAMEL-5155: ----------------------------------- Claus Ibsen: """ This sounds like a really good idea. We love contributions, and would look very much forward to your help with this component. http://camel.apache.org/contributing.html I like the fact if the uri can be the same / almost the same. Also when registering listeners in JCR, then remember to cleanup when the JcrConsumer stops, in the doStop method. There should be some API in JCR to unregister the listener as well. """ Woonsan: "Thank you very much for the valuable input! Yes, JCR has an API to unregister listener, so I will need to do proper clean ups. I'll keep you updated." > Support JCR Component as Consumer > --------------------------------- > > Key: CAMEL-5155 > URL: https://issues.apache.org/jira/browse/CAMEL-5155 > Project: Camel > Issue Type: Improvement > Components: camel-jcr > Affects Versions: 2.9.1 > Reporter: Woonsan Ko > Fix For: 2.10.0, 2.9.2 > > > I tried to use jcr component as consumer, expecting jcr observation event listener like behavior, but I realized that it's not supported yet. The current jcr component supports producer only. So, I'm considering to implement JcrConsumer and possibly contribute it in a new CAMEL JIRA issue later. > My idea is as follows: > i) the uri format is the same. e.g. 'jcr://user:password@repository/absolute/path/from/node'; the node path is used for javax.jcr.observation.ObservationManager#addEventListener(..., absPath, ...). > ii) additionally, we need parameters for eventTypes, isDeep, uuid[], nodeTypeName[], noLocal parameters (See #addEventListener() for detail). > For example, we may probably use somethings like 'jcr://user:password@repository/absolute/path/from/node?nodeTypeName=demo:news&eventTypes=3&isDeep=true. > iii) JcrConsumer registers JCR observation event listener from the specified uri information. > iv) When events notified, I think it can simply return a list of javax.jcr.observation.Event objects in IN message. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira