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 Sat, 23 Oct 2010 20:58:00 GMT
Space: Apache Connectors Framework (
Page: How to Write an Output Connector (

Comment added by Karl Wright:

I'd suggest looking very carefully at how you maintain your manager table reference from the
main connector class.  If you look at WebConnector, you will note that it goes out
of its way to avoid keeping around any IThreadContext object, or anything that was "made"
using it, beyond the scope of the setThreadContext(something)/setThreadContext(null) interval. 
If you do wind up inadvertantly persisting something, you've effectively linked it across
threads, which will cause obviously unpredictable results.\\

In reply to a comment by Farzad:
The web connector uses a cachemanager that I'm not and agree don't need it.  I'll dig more.
 It crawls 7K or so before crashing, so if I'm doing something wrong, why wouldn't it fail
from the start or much earlier.  Perhaps the framework doesn't like it if you have db tables
without a cachemanager.  I'll look more still, was just looking for ideas, not debug my code

Change your notification preferences:

View raw message