Return-Path: X-Original-To: apmail-directory-api-archive@minotaur.apache.org Delivered-To: apmail-directory-api-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8149CC2B7 for ; Tue, 23 Jul 2013 06:32:12 +0000 (UTC) Received: (qmail 98113 invoked by uid 500); 23 Jul 2013 06:32:11 -0000 Delivered-To: apmail-directory-api-archive@directory.apache.org Received: (qmail 97963 invoked by uid 500); 23 Jul 2013 06:32:05 -0000 Mailing-List: contact api-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: api@directory.apache.org Delivered-To: mailing list api@directory.apache.org Received: (qmail 97935 invoked by uid 99); 23 Jul 2013 06:32:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 06:32:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of a.broekhuis@gmail.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qa0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 06:31:56 +0000 Received: by mail-qa0-f42.google.com with SMTP id bv4so1413947qab.15 for ; Mon, 22 Jul 2013 23:31:36 -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=EqfeJ241YlPPFWhYtfPmqwkz7FKwGUFftaYZwCPekZc=; b=M1kab5GAkeb2zIIWN9agyy95gVohC43Pfap8m/H35xZeaTSO3+Tl4YzFh7m5RO5FXf 05UEIkjvI0MSdj+8AS/SzdN7VblXyrltdQNWDeMClIwS0qJjlI7MoKbsgh7oXHXrDyUR 42CjvTUzSVYpt2ww2Z4c39G9bcxDNUU5uT+aqKW5MVAolj1ctozPERQ9mj+oxyyFT1cZ FZhZJPTdafeWGWn60WHQ+6Ntr6M1wX+FqUlciHljFTZXyfn/N9fFY8E0RYtVvYKrm5yG AnNIy4PlysM8fJgRk2kynVQAeV8b/IJauN+xfmMFJGhwdOxfivmpcsGC+0tyMeVpAK4n bLHw== MIME-Version: 1.0 X-Received: by 10.49.132.41 with SMTP id or9mr36536696qeb.18.1374561096050; Mon, 22 Jul 2013 23:31:36 -0700 (PDT) Received: by 10.49.87.36 with HTTP; Mon, 22 Jul 2013 23:31:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Jul 2013 08:31:35 +0200 Message-ID: Subject: Re: Persistent Search From: Alexander Broekhuis To: api@directory.apache.org Content-Type: multipart/alternative; boundary=047d7beb99fada2f9704e227f180 X-Virus-Checked: Checked by ClamAV on apache.org --047d7beb99fada2f9704e227f180 Content-Type: text/plain; charset=ISO-8859-1 > To make this work, we need to let the API codec service about the > corresponding control's factory class > by setting the system property > System.setProperty( StandaloneLdapApiService.DEFAULT_CONTROLS_LIST, > > "org.apache.directory.api.ldap.codec.controls.search.persistentSearch.PersistentSearchFactory"); > Thanks, I'll try this. But somehow I don't yet fully understand the principles behind the API. I am not familiar with LDAP and/or JNDI, so perhaps I am missing some basic knowledge. Would it make sense to read more about LDAP and JNDI to understand how I should use the API? The problems I am now running into are: I am trying to make a listener like class that tracks a certain DN. So I am using a persistent search and for each entry I can call a callback method. But I don't know how to tell what the ChangeType of a new entry (updated cursor) is. What I could find was that I need to use the EntryChange control from the response. To do this I now use setReturnECs on the PersistentSearch control, but I can't find any controls on the Response I get from the Cursor. What am I doing wrong? The system property in combination with setChangesOnly(false) works, so I am now seeing existing entries as well. Again, thanks for your help, and any pointers to some more documentation are also welcome! -- Met vriendelijke groet, Alexander Broekhuis --047d7beb99fada2f9704e227f180--