[jboss-jira] [JBoss JIRA] Closed: (JBREM-366) clean up client invoker tracking within InvokerRegistry

David Lloyd (JIRA) jira-events at lists.jboss.org
Wed Sep 26 05:31:20 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBREM-366?page=all ]

David Lloyd closed JBREM-366.
-----------------------------


> clean up client invoker tracking within InvokerRegistry
> -------------------------------------------------------
>
>                 Key: JBREM-366
>                 URL: http://jira.jboss.com/jira/browse/JBREM-366
>             Project: JBoss Remoting
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.4.0 final
>            Reporter: Tom  Elrod
>         Assigned To: Tom  Elrod
>            Priority: Critical
>             Fix For: 2.0.0.Beta2 (Boon)
>
>
> Currently the way client invokers are tracked per Client is a little awkward.  The Client class will go to the InvokerRegistry to get the client invoker it should use.  The InvokerRegistry will only maintain one single client invoker instance per locator uri (so multiple clients with the same locator uri would be getting the same client invoker instance).  The InvokerRegistry itself does not keep up with the number of Clients that have requested a client invoker.  Therefore, when a client disconnects, it will disconnect the client invoker and remove it from the InvokerRegistry.  When the other Clients then try to make an invocation using the same reference to the client invoker (that has been disconnected), it will throw away the old one and create a new one.  
> A better approach would be for the InvokerRegistry to keep a reference count to the client invoker.  Then when the last Client using a particular client invoker disconnects, the InvokerRegistry would then disconnect and destroy the client invoker instance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list