Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » COSMOS » parsing query results from multiple MDRs
parsing query results from multiple MDRs [message #571757] Mon, 13 October 2008 20:27
David Loewenstern is currently offline David LoewensternFriend
Messages: 4
Registered: July 2009
Junior Member
I apologize if this question has been answered before, but I have not
seen it in the archives.

Say I have an application that queries two _different_ MDRs with
_different_ underlying object models. The application can be configured
so it knows which model goes with which MDR. To make this concrete,
say we have one MDR that handles personnel and a different MDR that
handles IT assets, and we need to construct queries across both (e.g.,
"list all assets that are assigned to managers with pay grade above 10").

I realize it isn't Cosmos's or CMDBf's job to tear apart the query and
route the subqueries to the appropriate MDR, and I'm not worried about
that. The problem I have is specific, and has to do with handling the
query responses.

Both MDRs will send back query responses containing records. For one,
the records will be personnel, for the other, IT assets. As far as I
can tell, the CMDBf will handle both by way of the
QueryOutputStreamHandler, ultimately calling
CMDBfServicesUtil.getRecordSerializer(). There can be only one record
serializer -- it's a class variable, so even if I have two separate
instances of QueryOutputStreamHandler, they will both use the same
record serializer. But I need two serializers, one for the personnel
data model, one for the IT data model. How do I accomplish this?

It seems that there is a problem in that QueryOutputStreamHandler
accepts a user-defined ArtifactFactory but ignores it in favor of
CommonArtifactFactory when creating most object types.

David Loewenstern
davidloe@us.ibm.com
Previous Topic:Article on COSMOS and CMDBf in media
Next Topic:parsing query results from multiple MDRs
Goto Forum:
  


Current Time: Thu Apr 25 08:01:02 GMT 2024

Powered by FUDForum. Page generated in 0.02780 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top