manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Connectors Framework > How to Write an Output Connector
Date Thu, 14 Oct 2010 22:48:00 GMT
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=24183064#comment-24183064

Comment added by Farzad:
---------------------------------------------------------------------

So I manage to get my connector built and running.  The goals was to create a table in db
and see it populate with some unique strings, my name :) I encountered two problems, the job
never ends, my file set was 9.  It said 9 processed, but also 6 active.  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/.

In reply to a comment by Karl Wright:
getSession() is empty code only in the null output connector.  Normally that's where
you'd set up your connection to your output target server.  The code was left structured
that way to demonstrate the proper way of setting up connection sessions.  You can't
do the actual connection in the connect() method because (as you may or may not have noticed),
there is no way to throw an exception from that method.

If you are simply identifying duplicates, then no session is needed, and you can remove connect(),
disconnect(), getSession(), etc.\\

Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action

Mime
View raw message