incubator-connectors-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 Sun, 24 Oct 2010 04:49: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=24184140#comment-24184140

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

And if something is linked across threads, the cache manager is needed to retrieve the objects
to operate on when needed, since I don't have I one, I get an error.

When is the book coming out?

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

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

Mime
View raw message