[dna-issues] [JBoss JIRA] Resolved: (DNA-588) The connectors should release all resources before notifying observer of events

Randall Hauch (JIRA) jira-events at lists.jboss.org
Sat Dec 12 13:43:30 EST 2009


     [ https://jira.jboss.org/jira/browse/DNA-588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch resolved DNA-588.
-------------------------------

    Fix Version/s: 0.7
                       (was: 1.0)
       Resolution: Done
         Assignee: Randall Hauch


This was changed as part of the fix for DNA-582.

> 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
>            Assignee: Randall Hauch
>             Fix For: 0.7
>
>
> 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

        


More information about the dna-issues mailing list