| Summary: | Remote service calls handled by one thread when using ecf generic | ||
|---|---|---|---|
| Product: | [RT] ECF | Reporter: | Franky Bridelance <franky.bugzilla> |
| Component: | ecf.remoteservices | Assignee: | ecf.core-inbox <ecf.core-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bugs.eclipse.org, slewis |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Franky Bridelance
You are correct about the limitation...up until recently the ECF generic provider did have only a single thread for processing remote requests. Recently, however, this limitation has been removed, and the ECF generic provider (in RegistrySharedObject class) now uses the Equinox event manager to invoke remote calls in a separate thread. This enhancement will be in ECF 3.4, and is available now via recent builds (available at our builder here: https://ecf2.osuosl.org/hudson/). BTW, I'm considering adding API to RegistrySharedObject so that subclasses can define their own execution context (i.e. their own thread pool, etc) for handling remote execution requests. Please let us know (via this bug or ecf-dev mailing list) if you think this will prove useful. Thanks for the report. I'm resolving as fixed. If this doesn't address your issue...or if there are things that you would like to see different, etc please reopen and detail. I forgot to mention on comment 1 that this addition will be in the Helios service release (i.e. ECF 3.3.1) as well as in ECF 3.4 and subsequent versions. (In reply to comment #2) > I forgot to mention on comment 1 that this addition will be in the Helios > service release (i.e. ECF 3.3.1) as well as in ECF 3.4 and subsequent versions. Hi Scott, Thanks for the quick response. About the API on RegistrySharedObject: with my little knowledge about the ECF framework I would say it might be useful as I'm looking on how to put authorization on service method invocations (most probably in combination with spring security) and it looks like RegistrySharedObject is the place to customize (? need some more investigation on my side...). One more question: Before reporting a bug that might be already solved, I'm looking first on the CVS repository (:pserver:anonymous@dev.eclipse.org:/cvsroot/rt HEAD) for the latest source code but I have the impression it isn't always the latest code. Am I right? (In reply to comment #3) > One more question: Before reporting a bug that might be already solved, I'm > looking first on the CVS repository > (:pserver:anonymous@dev.eclipse.org:/cvsroot/rt HEAD) for the latest source > code but I have the impression it isn't always the latest code. Am I right? We haven't switched to git yet so dev.eclipse.org is still our primary repo. What you might experiencing though, is that anonymous pserver access sometimes takes a few minutes to sync up with committer access (afaik due to some kind of replication). (In reply to comment #3) > (In reply to comment #2) > > I forgot to mention on comment 1 that this addition will be in the Helios > > service release (i.e. ECF 3.3.1) as well as in ECF 3.4 and subsequent versions. > > Hi Scott, > > Thanks for the quick response. > About the API on RegistrySharedObject: with my little knowledge about the ECF > framework I would say it might be useful as I'm looking on how to put > authorization on service method invocations (most probably in combination with > spring security) and it looks like RegistrySharedObject is the place to > customize (? need some more investigation on my side...). Yes, that would probably be right (RegistrySharedObject for authorization on service method invocations). I think it's likely that more additions will be made to RegistrySharedObject...along with some refactoring...during this release cycle (i.e. both before 3.4 and for 3.5/3.6). So if you can, I would suggest cooperating closely with us (via mailing list) and possibly even considering contributing some work to ECF directly. > > One more question: Before reporting a bug that might be already solved, I'm > looking first on the CVS repository > (:pserver:anonymous@dev.eclipse.org:/cvsroot/rt HEAD) for the latest source > code but I have the impression it isn't always the latest code. Am I right? It is the 'latest' code...with the caveat (ala comment 4) that since the Foundation has gone to allowing a 'slight delay' for pserver access one may not get updates immediately. (In reply to comment #5) > (In reply to comment #3) > > (In reply to comment #2) > > > I forgot to mention on comment 1 that this addition will be in the Helios > > > service release (i.e. ECF 3.3.1) as well as in ECF 3.4 and subsequent versions. > > > > Hi Scott, > > > > Thanks for the quick response. > > About the API on RegistrySharedObject: with my little knowledge about the ECF > > framework I would say it might be useful as I'm looking on how to put > > authorization on service method invocations (most probably in combination with > > spring security) and it looks like RegistrySharedObject is the place to > > customize (? need some more investigation on my side...). > Yes, that would probably be right (RegistrySharedObject for authorization on > service method invocations). > I think it's likely that more additions will be made to > RegistrySharedObject...along with some refactoring...during this release cycle > (i.e. both before 3.4 and for 3.5/3.6). So if you can, I would suggest > cooperating closely with us (via mailing list) and possibly even considering > contributing some work to ECF directly. I'll try to help as much as I can. I'm still in the investigation phase of what is needed (+learning ECF). Meanwhile I subscribed to the ecf dev list, so you will hear from me via the dev list. > > > > One more question: Before reporting a bug that might be already solved, I'm > > looking first on the CVS repository > > (:pserver:anonymous@dev.eclipse.org:/cvsroot/rt HEAD) for the latest source > > code but I have the impression it isn't always the latest code. Am I right? > It is the 'latest' code...with the caveat (ala comment 4) that since the > Foundation has gone to allowing a 'slight delay' for pserver access one may not > get updates immediately. |