Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "COSMOS Performance Testing"

(Statistical Data Manager)
(Test FederatingCMDB - FederatingCMDBRegistrationService)
Line 148: Line 148:
 
<cmdbf:itemList>
 
<cmdbf:itemList>
 
<cmdbf:item>
 
<cmdbf:item>
<cmdbf:record xmlns="http://school">
+
<cmdbf:record xmlns="http://school">
<student> <identity firstName="Mike" lastName="Lee" id="Student03">
+
</identity>
+
<student>
</student>
+
<cmdbf:recordMetadata>
+
<identity firstName="Mike" lastName="Lee" id="Student03">
<cmdbf:recordId>Record for Mike Lee</cmdbf:recordId>
+
</identity>
</cmdbf:recordMetadata>
+
</cmdbf:record>
+
</student>
<cmdbf:instanceId>
+
<cmdbf:recordMetadata>
<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
+
<cmdbf:recordId>Record for Mike Lee</cmdbf:recordId>
 +
</cmdbf:recordMetadata>
 +
</cmdbf:record>
 +
<cmdbf:instanceId>
 +
<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
 
<cmdbf:localId>Student03</cmdbf:localId>
 
<cmdbf:localId>Student03</cmdbf:localId>
</cmdbf:instanceId>
+
</cmdbf:instanceId>
 
</cmdbf:item>
 
</cmdbf:item>
 
<cmdbf:item>
 
<cmdbf:item>
<cmdbf:record xmlns="http://school">
+
<cmdbf:record xmlns="http://school">
<student>
+
<identity firstName="Jane" lastName="Ryerson" id="Student02">
+
<student>
</identity>
+
</student>
+
<identity firstName="Jane" lastName="Ryerson" id="Student02">
<cmdbf:recordMetadata>
+
</identity>
        <cmdbf:recordId>Record for Jane Ryerson</cmdbf:recordId>
+
</cmdbf:recordMetadata>
+
</student>
</cmdbf:record>
+
<cmdbf:recordMetadata>
<cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
+
<cmdbf:recordId>Record for Jane Ryerson</cmdbf:recordId>
<cmdbf:localId>Student02</cmdbf:localId>
+
</cmdbf:recordMetadata>
</cmdbf:instanceId>
+
</cmdbf:record>
 +
<cmdbf:instanceId>
 +
<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
 +
<cmdbf:localId>Student02</cmdbf:localId>
 +
</cmdbf:instanceId>
 
</cmdbf:item>
 
</cmdbf:item>
 
<cmdbf:item>
 
<cmdbf:item>
<cmdbf:record xmlns="http://school">
+
<cmdbf:record xmlns="http://school">
<student>
+
<identity firstName="Bob" lastName="Davidson" id="Student01">
+
<student>
</identity>
+
</student>
+
<identity firstName="Bob" lastName="Davidson" id="Student01">
<cmdbf:recordMetadata>
+
</identity>
<cmdbf:recordId>Record for Bob Davidson</cmdbf:recordId>
+
</cmdbf:recordMetadata>
+
</student>
 +
<cmdbf:recordMetadata>
 +
<cmdbf:recordId>Record for Bob Davidson</cmdbf:recordId>
 +
</cmdbf:recordMetadata>
 
</cmdbf:record>
 
</cmdbf:record>
<cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
+
<cmdbf:instanceId>
<cmdbf:localId>Student01</cmdbf:localId>
+
<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
</cmdbf:instanceId>
+
<cmdbf:localId>Student01</cmdbf:localId>
</cmdbf:item>
+
</cmdbf:instanceId>
<cmdbf:item>
+
</cmdbf:item>
<cmdbf:record xmlns="http://school">
+
<cmdbf:item>
<teacher>
+
<cmdbf:record xmlns="http://school">
<identity firstName="Heather" lastName="Reeba" id="Staff02">
+
 +
<teacher>
 +
 +
<identity firstName="Heather" lastName="Reeba" id="Staff02">
 
</identity>
 
</identity>
 
 

Revision as of 06:18, 30 June 2008

Introduction

Performance testing is an important part of any distributed or Web application testing, which ensures that the application delivered to a customer satisfies high load,availability and scalability requirements.

Early identification of software load limitations helps to configure the system appropriately to avoid unexpected crashes.

Some of the questions which should be addressed at system performance analysis are:

  • Will the Application or Server be able to process simultaneous requests coming from hundreds, or thousands of clients ? and
  • What is the frequency of requests the system can handle ?


Apache JMeter—a performance testing framework from Apache, has been widely accepted as a performance testing tool for Web applications. It can be used to analyze overall server performance under simulated heavy load.

Terminology

The terminologies/acronyms below are commonly used throughout this document. The list below defines each term regarding how it is used in this document.

Term Definition
Scalability Scalability refers to the ability to handle additional workload, without adversely affecting performance, by adding resources such as CPU, memory, and storage capacity.
Throughput Throughput is the number of units of work that can be handled per unit of time; for instance, requests per second, calls per day, hits per second, reports per year, etc.
Median Median is the number that represents the time, where half of server response time is lower than this number and half is higher
Average Average is the total time running divided by number of requests sent to the server.
Deviation Deviation shows how much the server response time varies, a measure of degree of dispersion, or, in other words, how spread the data are
Volume Testing Testing which confirms that any values that may become large over time (such as accumulated counts, logs, and data files), can be accommodated by the program and will not cause the program to stop working or degrade its operation in any manner.
Load Test A performance test focused on determining or validating performance characteristics of the product under test when subjected to workload models and load volumes anticipated during production operations
Performance Test A performance test is a technical investigation done to determine or validate the speed, scalability, and/or stability characteristics of the product under test.
Stress Test A stress test is a type of performance test designed to evaluate an application’s behavior when it is pushed beyond normal or peak load conditions
Response Time Response time is the amount of time that it takes for a server to respond to a request.
Latency In general terms, a time delay between the moment something is initiated, and the moment one of its effects begins. In the realm of software performance, latency is often referred to in the contexts of server latency, network latency and disk latency.
Utilization In the context of performance testing, utilization is the percentage of time that a resource is busy servicing user requests. The remaining percentage of time is considered idle time.

Performance - Volume Tests

Apache JMeter Tool - Setup Instructions

  1. Open Jmeter window (jmeter-install-dir\bin\jmeter.bat)
  2. On the left side, right click on the ‘Test Plan’ node and select ‘Add->Thread Group’. This inserts one child node called ‘Thread Group’ under ‘Test Plan’.
  3. Select the ‘Thread Group’ node. On the right side for ‘Number of Threads’ text box, give the number of samples.
  4. Right click on ‘Thread Group’ node, and select ‘Add->Sampler->SOAP/XML- RPC Request’. This inserts one child node called ‘SOAP/XML-RPC Request’ under ‘Thread Group’
  5. Select the ‘SOAP/XML-RPC Request’ node. On the right-side, in text box URL: give the URL to which the request to be send. In the ‘Soap/XML-RPC Data’ text area type the ‘SOAP request’
  6. Right click on ‘Thread Group’ node, and select ‘Add->Listener->Summary Report’. This inserts one child node called ‘Summary Report’ under the ‘Thread Group’. We can select our own format for displaying results (summary, table, tree…etc)
  7. Save the test
  8. Now, to run the test, from menu bar select Run->Start for running a test.
  9. Run->Stop for stopping test
  10. The results will be populated in the Listeners that we have added to the test.

Broker Testing

Test Broker-getAllGroups

  • Using Apache JMeter Tool,testing Broker with 1000 samples of users simulation
    • Follow the procedure in creating, running the test using JMeter.
    • Provide below SOAP request of Broker to Jmeter tool and run it with 1000 samples
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body><tns:getAllGroups xmlns:tns="http://www.eclipse.org/cosmos/broker" />
</soapenv:Body></soapenv:Envelope>
  • Result:

Broker getAllGroups2.png


Statistical Data Manager

Test StatisticalDataManager - getStatDataForSources

  • Using Apache JMeter Tool,testing StatisticalDataManager with 1000 samples of users simulation
    • Follow the procedure in creating, running the test using JMeter.
    • Provide below SOAP request of Broker to Jmeter tool and run it with 1000 samples
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body><tns:getStatDataForSources xmlns:tns="http://datamgr.stat.internal.dc.cosmos.eclipse.org">
<tns:dataset>server 33 tomcat1181829221515</tns:dataset><tns:keyset>CBE</tns:keyset><tns:start>0</tns:start>
<tns:size>1000</tns:size></tns:getStatDataForSources>
</soapenv:Body></soapenv:Envelope>
  • Result

StatDataManager getStatDataSources2.png


Example Mdr

Test ExampleMdr - ExampleMdrQueryService

  • Using Apache JMeter Tool,testing ExampleMdrQueryService with 1000 samples of users simulation
    • Follow the procedure in creating, running the test using JMeter.
    • Provide below SOAP request of Broker to Jmeter tool and run it with 1000 samples
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body><tns:getStatDataForSources xmlns:tns="http://datamgr.stat.internal.dc.cosmos.eclipse.org">
<tns:dataset>server 33 tomcat1181829221515</tns:dataset><tns:keyset>CBE</tns:keyset><tns:start>0</tns:start>
<tns:size>1000</tns:size></tns:getStatDataForSources>
</soapenv:Body></soapenv:Envelope>
  • Result

ExampleMdrQueryService2.png


Federating CMDB

Test FederatingCMDB - FederatingCMDBRegistrationService

  • Using Apache JMeter Tool,testing FederatingCMDBRegistrationService with 1000 samples of users simulation
    • Follow the procedure in creating, running the test using JMeter.
    • Provide below SOAP request of Broker to Jmeter tool and run it with 1000 samples
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><cmdbf:registerRequest xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel">
	<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
	<cmdbf:itemList>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<student>
									
									<identity firstName="Mike" lastName="Lee" id="Student03">
									</identity>
									
									</student>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Mike Lee</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student03</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<student>
									
									<identity firstName="Jane" lastName="Ryerson" id="Student02">
									</identity>
									
									</student>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Jane Ryerson</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student02</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<student>
									
									<identity firstName="Bob" lastName="Davidson" id="Student01">
									</identity>
									
									</student>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Bob Davidson</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<teacher>
									
									<identity firstName="Heather" lastName="Reeba" id="Staff02">
									</identity>
									
									</teacher>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Heather Reeba</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<teacher>
									
									<identity firstName="Dawn" lastName="Johnson" id="Staff01">
									</identity>
									
									</teacher>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Dawn Johnson</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<class name="Economics" courseCode="ECM01">
									
									<students>
									
									<enrolledStudent idRef="Student01">
									</enrolledStudent>
									
									<enrolledStudent idRef="Student03">
									</enrolledStudent>
									
									</students>
									
									<teacher idRef="Staff01">
									</teacher>
									
									</class>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Economics</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>ECM01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<class name="Mathematics" courseCode="MAT01">
									
									<students>
									
									<enrolledStudent idRef="Student01">
									</enrolledStudent>
									
									<enrolledStudent idRef="Student02">
									</enrolledStudent>
									
									</students>
									
									<teacher idRef="Staff02">
									</teacher>
									
									</class>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Mathematics</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>MAT01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<class name="Physics" courseCode="PHY01">
									
									<students>
									
									<enrolledStudent idRef="Student02">
									</enrolledStudent>
									
									<enrolledStudent idRef="Student03">
									</enrolledStudent>
									
									</students>
									
									<teacher idRef="Staff02">
									</teacher>
									
									</class>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Physics</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>PHY01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<student>
									
									<identity firstName="Mike" lastName="Lee" id="Student03">
									</identity>
									
									</student>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Mike Lee</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student03</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<student>
									
									<identity firstName="Jane" lastName="Ryerson" id="Student02">
									</identity>
									
									</student>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Jane Ryerson</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student02</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<student>
									
									<identity firstName="Bob" lastName="Davidson" id="Student01">
									</identity>
									
									</student>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Bob Davidson</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<teacher>
									
									<identity firstName="Heather" lastName="Reeba" id="Staff02">
									</identity>
									
									</teacher>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Heather Reeba</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">
				
					<teacher>
									
									<identity firstName="Dawn" lastName="Johnson" id="Staff01">
									</identity>
									
									</teacher>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Dawn Johnson</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
	</cmdbf:itemList>
	<cmdbf:relationshipList>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student03</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">
				
					<class name="Physics" courseCode="PHY01">
									
									<students>
									
									<enrolledStudent idRef="Student02">
									</enrolledStudent>
									
									<enrolledStudent idRef="Student03">
									</enrolledStudent>
									
									</students>
									
									<teacher idRef="Staff02">
									</teacher>
									
									</class>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Physics</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02/Student03/PHY01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student02</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">
				
					<class name="Mathematics" courseCode="MAT01">
									
									<students>
									
									<enrolledStudent idRef="Student01">
									</enrolledStudent>
									
									<enrolledStudent idRef="Student02">
									</enrolledStudent>
									
									</students>
									
									<teacher idRef="Staff02">
									</teacher>
									
									</class>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Mathematics</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02/Student02/MAT01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student02</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">
				
					<class name="Physics" courseCode="PHY01">
									
									<students>
									
									<enrolledStudent idRef="Student02">
									</enrolledStudent>
									
									<enrolledStudent idRef="Student03">
									</enrolledStudent>
									
									</students>
									
									<teacher idRef="Staff02">
									</teacher>
									
									</class>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Physics</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02/Student02/PHY01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student01</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">
				
					<class name="Mathematics" courseCode="MAT01">
									
									<students>
									
									<enrolledStudent idRef="Student01">
									</enrolledStudent>
									
									<enrolledStudent idRef="Student02">
									</enrolledStudent>
									
									</students>
									
									<teacher idRef="Staff02">
									</teacher>
									
									</class>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Mathematics</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff02/Student01/MAT01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff01</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student03</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">
				
					<class name="Economics" courseCode="ECM01">
									
									<students>
									
									<enrolledStudent idRef="Student01">
									</enrolledStudent>
									
									<enrolledStudent idRef="Student03">
									</enrolledStudent>
									
									</students>
									
									<teacher idRef="Staff01">
									</teacher>
									
									</class>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Economics</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff01/Student03/ECM01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff01</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Student01</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">
				
					<class name="Economics" courseCode="ECM01">
									
									<students>
									
									<enrolledStudent idRef="Student01">
									</enrolledStudent>
									
									<enrolledStudent idRef="Student03">
									</enrolledStudent>
									
									</students>
									
									<teacher idRef="Staff01">
									</teacher>
									
									</class>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>Record for Economics</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>Staff01/Student01/ECM01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
	</cmdbf:relationshipList>
</cmdbf:registerRequest></soapenv:Body></soapenv:Envelope>
  • Result

ExampleMdrQueryService2.png

Back to the top