The connectors should release all resources before notifying observer of events
-------------------------------------------------------------------------------
Key: DNA-588
URL:
https://jira.jboss.org/jira/browse/DNA-588
Project: DNA
Issue Type: Bug
Components: Connectors, Graph
Affects Versions: 0.7
Reporter: Randall Hauch
Fix For: 1.0
Right now, most connectors are firing off the changes to the Observer before the resources
acquired by the connector are released, meaning that the Observer cannot use the source
within the same thread. This prevents writing Observers that operate fully before the
'execute(...)' method returns, and requires that any Observer that might need
access to the source needs to do its work asynchronously.
By notifying the Observer _after_ the resources are released but before
'execute(...)' returns, Observers could call back to the source (really through a
different connection or at least through a different 'execute(...)' call) to
access content. This means that Observers could be written to work synchronously while
still access the (committed) content.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira