incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Connectors Framework > How to Write an Output Connector
Date Fri, 15 Oct 2010 22:14:00 GMT
Space: Apache Connectors Framework (
Page: How to Write an Output Connector (

Comment added by Farzad:

I got an error trying to unregister, I posted that under "How to build and deploy ManifoldCF"
where it talks about issuing commands.

I got around the problem by dropping the table and doing a clean build.  Now the table is
created, however it is empty, no rows.  dataManager.insertData is getting called inside addOrReplaceDocument.

The job status says Documents=9, Active=6, and Processed=9 and the job doesn't end. I am returning
DOCUMENTSTATUS_ACCEPTED.  I start the job manually.

I traced the calls and I see where deinstall and install are called initially.  When I start
the job, for some reason addOrReplaceDocument is called 45 times, and getOutputDescription
is called 48 times.  I only have 9 docs, why so many times?

In reply to a comment 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.


Change your notification preferences:

View raw message