From: Farrukh N. <Farrukh.Najmi@Sun.COM> - 2006-06-16 03:55:56
|
Farrukh Najmi wrote: > Walter Duque de Estrada wrote: >> Dear list members: >> >> This is a little long winded so forgive me ahead of time. >> I managed to submit an external Registry to be associated to a >> Federation once I changed it to localCall = false. >> >> Now I wanted to do a federated search. I found in >> org.freebxml.omar.server.query.QueryManagerImpl >> this code: (lines 132-171) >> AdhocQueryRequestType req = >> (AdhocQueryRequestType)((ServerRequestContext)context).getCurrentRegistryRequest(); >> >> //stuff deleted >> if (((ServerRequestContext)context).getSpecialQueryResults() != >> null ) { >> //stuff deleted >> } else { >> boolean isFederated = req.isFederated(); >> if (isFederated) { >> //Initialize lazily. Otherwise we have an infinite create loop >> if ( fqm == null ) { >> fqm = FederatedQueryManager.getInstance(); >> } >> ahqr = fqm .submitAdhocQuery((ServerRequestContext)context); >> } >> >> So I decided to find where AdhocQueryRequestType . setFederated >> occurred so I could see how to do it in my query. To make a long >> story short, I can only find test code that exercises setFederated() >> through setFederation(String). It is called by >> FederatedQueryProcessor, which is instantiated by >> FederatedQueryManager, which is only instantiated in the code above. >> >> This seems like a classic chicken-or-egg situation. What am i missing? >> > Walter, > > This is a bug in our UI that we do not allow user to specify a > federated search. > > The fix is quite simple. I will try and have a fix to Java UI and > later Web UI to > provide a check box for Federated Search that is by default checked OFF. > > Thanks for reporting this bug. I will send a response when this fix > has been committed > to latest CVS code stream. Hi Walter, The bug you reported has been fixed for Java UI and committed to latest CVS. There is a new "Federated Query" toggle button in the Search Parameters Panel. If you have the button selected then the query will be a federated query across all Registries in all Federations configured in this registry. Note that we have not added a control to allow you to choose a specific Federation as the target of the federated query. That will be a TODO for later. I figure 90% of the usage will be addressed by what we have implemented so far. Please let me know how you find the feature. Next, we will fix the same for Web UI. Lastly, I am thinking that we should add a new Federation in DemoDB that contains the local registry and the Paradigma public test registry: http://ebxmlrr.sourceforge.net/wiki/index.php/Showcase/Paradigma This will allow routine usage and testing of the Federation feature easily. At present this registry seems to be unavailable. Marco, what do you think of the idea? Do you think this registry can be operated reliably enough and kept current with latest bits at least on a weekly basis? Let me know so we can decide whether to depend upon it or not. Thanks Marco. And thanks very much Walter for reporting the bug. I hope that you can exercise the Federation features and report your experience so we can improve this important feature. -- Regards, Farrukh |