Return-Path: Delivered-To: apmail-incubator-connectors-commits-archive@minotaur.apache.org Received: (qmail 14648 invoked from network); 14 Oct 2010 22:59:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Oct 2010 22:59:24 -0000 Received: (qmail 62794 invoked by uid 500); 14 Oct 2010 22:59:24 -0000 Delivered-To: apmail-incubator-connectors-commits-archive@incubator.apache.org Received: (qmail 62754 invoked by uid 500); 14 Oct 2010 22:59:24 -0000 Mailing-List: contact connectors-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-commits@incubator.apache.org Received: (qmail 62747 invoked by uid 99); 14 Oct 2010 22:59:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 22:59:24 +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; Thu, 14 Oct 2010 22:59:21 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9EMx0rU018404 for ; Thu, 14 Oct 2010 22:59:00 GMT Date: Thu, 14 Oct 2010 18:59:00 -0400 (EDT) From: confluence@apache.org To: connectors-commits@incubator.apache.org Message-ID: <4414683.431.1287097140032.JavaMail.confluence@thor> Subject: [CONF] Apache Connectors Framework > How to Write an Output Connector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Auto-Submitted: auto-generated X-Virus-Checked: Checked by ClamAV on apache.org Space: Apache Connectors Framework (https://cwiki.apache.org/confluence/display/CONNECTORS) Page: How to Write an Output Connector (https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector) Comment: https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector?focusedCommentId=24183066#comment-24183066 Comment added by Karl Wright: --------------------------------------------------------------------- I took a quick glance.  In order for your table to get created, you need to implement the install() and uninstall() methods of the connector.  See the web connector for an example.  These methods should call your appropriate table manager methods. BEFORE you do this you want to unregister your output connector using the appropriate "unregisteroutput" command via shell script.  If you don't then when you start up Manifold you will get an exception, because it's trying to tear down a table that doesn't yet exist.  It is at registration time that the install() method will be called. Karl\\ In reply to a comment by Farzad: So I managed to get my connector built and running. The goals was to create a table in the database and see it populate with some unique string, my name :) I encountered two problems, the job never ends, my file set was 9. It said 9 processed, but also 6 active, and never showed an end date. Also I thought I created a table in the db called "filedata", but when I browse the database with phpPgAdmin, I don't see that under Schemas\public\Tables. Any thoughts? I will admit I'm struggling to grasp the flow. If there are other reading materials or links you think will remove the fog, please share. I upload my dupfinder connector source directory, as well as the modules\build.xml file to http://www.farzad.net/manifoldcf/. Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action