This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 233690 - Configuring and retrieving data manager configuration values
Summary: Configuring and retrieving data manager configuration values
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 enhancement (vote)
Target Milestone: ---   Edit
Assignee: John Todd CLA
QA Contact:
URL: http://wiki.eclipse.org/COSMOS_Design...
Whiteboard:
Keywords:
: 232165 (view as bug list)
Depends on:
Blocks: 222709 233705 235144 235898 238298
  Show dependency tree
 
Reported: 2008-05-23 11:08 EDT by Hubert Leung CLA
Modified: 2012-01-03 13:47 EST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert Leung CLA 2008-05-23 11:08:57 EDT
Data managers have values that need to be configured at deployment time.  These values include:
- display name
- description
- MDR ID  (for CMDBf MDRs)

These values can be put in a configuration file, and provide a web service operation in the data manager web service to retrive the values.  

The MDR ID is of particular interest, which is used in CMDBf queries and registration for identifying an MDR.  

We should revisit the problem of uniquely identifying data managers with this enhancement.  Currently, data managers are identified by the axis2 service group name and the hostname.  The axis2 service group name is garenteed to be unique per axis2 container.  Together with the hostname, the two values form a unique key.  (One assumption here is that we don't have two servers on the same host.)  If we have a common strategy for specifying MDR ID, we can generalize that as a way to specify unique identifiers for all data managers. 

Some config values can be locale specific.  

Need to decide whether these values are cached at the broker.  

The data manager toolkit can provide ways to help set up the config file.
Comment 1 Hubert Leung CLA 2008-05-23 11:12:34 EDT
Two deployment instances of the same MDR need to have different MDR IDs.  This is to support having multiple instances of the same MDR.  It's a use case CA brought forward. 
Comment 2 Hubert Leung CLA 2008-06-10 17:49:02 EDT
*** Bug 232165 has been marked as a duplicate of this bug. ***
Comment 3 David Whiteman CLA 2008-06-19 23:37:28 EDT
Is this still being considered for i12?  If so, it needs to be mapped to a use case and there will need to be a design, in order for it to be approved.  I am asking since this ER will impact other defects that might need to be scheduled for i12, including bug 233705.
Comment 4 Sheldon Lee-Loy CLA 2008-06-25 12:22:57 EDT
Can we also include an optional icon value that represents the MDR?
Similar to how website's can provide a favicon.

http://en.wikipedia.org/wiki/Favicon
Comment 5 Jimmy Mohsin CLA 2008-07-08 10:46:01 EDT
Added hours per Hubert's estimate.  This may be re-assigned to JT.
Comment 6 John Todd CLA 2008-07-15 14:49:15 EDT
So is it the idea for each datamanager/mdr to have a getDataManagerInfo service defined? (and getSoapVersion)

- JT
Comment 7 Hubert Leung CLA 2008-07-15 15:04:45 EDT
(In reply to comment #6)
> So is it the idea for each datamanager/mdr to have a getDataManagerInfo service
> defined? (and getSoapVersion)
> - JT

Each service group will have a config file.  Each COSMOS service group (data manager) will include the datamanager service.  The datamanager service has two operations (getDataManagerInfo, getSoapVersion) to get these configuration values.  I just want to be clear that the operations for getting the config values don't need to be implemented by each data manager.  
Comment 8 John Todd CLA 2008-07-15 16:03:15 EDT
Ok, successful test of two different Datamanagers using the same service code in the DataManager package.

- JT
Comment 9 John Todd CLA 2008-07-16 10:13:42 EDT
I have all the datamanagers/mdrs supporting getDataManagerInfo (CLI only) now but 
I had to change the services.xml messageReceivers for the MDRs
Comment 10 John Todd CLA 2008-07-17 14:32:55 EDT
service finder now uses info from cosmos.properties for datamanagers.

- JT
Comment 11 John Todd CLA 2008-07-18 14:25:00 EDT
I've integrated with the changes from 235898,
cosmos.properites keys that are registered by the broker are
ID, DisplayName,Description, SoapNamespace, RecordTypeNamespace and
SecurityNamespace.
These changes are not yet checked in.

- JT
Comment 12 John Todd CLA 2008-07-21 09:27:19 EDT
Bill has added as part of 235898, the SoapNamespace to the what the broker registers, I am thinking for the new getSoapVersion() web service, that we use that to key off instead of trying to deduce it from the WSDL which may not have it  
(though I guess it is possible that the broker may not have it either...)

- JT
Comment 13 John Todd CLA 2008-07-21 14:24:32 EDT
cosmos.properties files have been updated to have default values for the 
new properties introduced by 235898, these are subject to change if more suitable default values become apparent.
Comment 14 John Todd CLA 2008-07-22 08:25:37 EDT
The changes to the ServiceFinder are checked in, there is a bug open 241439 for the build changes that are required for this issue.

- JT
Comment 15 David Whiteman CLA 2008-07-23 10:20:26 EDT
Has the Example MDR been updated to contain the new config files for this enhancement?
Comment 16 John Todd CLA 2008-07-23 10:22:20 EDT
In theory all datamanagers have been updated with cosmos.properties files.
I'm still in the process of verifying work on 241439

- JT
Comment 17 John Todd CLA 2008-07-23 10:28:38 EDT
These changes are checked in code complete, if there are bugs associated with this  new bugs can be used to address those problems.
Comment 18 Srinivas Reddy CLA 2008-07-31 04:55:33 EDT
QA Review for Manual Tests/Junits:
- No explicit test cases found, however this has been tested as part of End2End testing with Command Line operations uisng GetDataManagerInfo,GetDataManagerById,GetDataManagersByRecordTypeNamespace etc.