You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2007/07/02 14:16:40 UTC

svn commit: r552481 [6/7] - in /incubator/tuscany/java/sca/itest/osgi-implementation: ./ src/ src/main/ src/main/java/ src/main/java/helloworld/ src/main/java/helloworld/ws/ src/main/java/stockquote/ src/main/java/supplychain/ src/main/java/supplychain...

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-ds-test2.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-ds-test2.composite?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-ds-test2.composite (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-ds-test2.composite Mon Jul  2 05:16:31 2007
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	targetNamespace="http://supplychain"
+	xmlns:sp="http://supplychain"
+	name="supplychain">
+
+    <component name="CustomerComponent">
+        <implementation.osgi 
+                bundle="supplychain.Customer"
+                bundleLocation="file:target/wiring/ds/Customer.jar" >
+            
+            <properties reference="retailer1">
+                <property name="retailerName">amazon.com</property>
+            </properties>
+            <properties reference="retailer2">
+                <property name="retailerName">play.com</property>
+            </properties>
+            <properties reference="retailer3">
+                <property name="retailerName">ebay.com</property>
+            </properties>
+        </implementation.osgi>
+            
+        <reference name="retailer1" target="RetailerComponent1/Retailer" />
+        
+        <reference name="retailer2" target="RetailerComponent2/Retailer" />
+        
+        <reference name="retailer3" target="RetailerComponent3/Retailer" />
+    </component>
+
+    <component name="RetailerComponent1">
+        <implementation.osgi
+                bundle="supplychain.Retailer"
+                bundleLocation="file:target/wiring/ds/Retailer.jar" >
+            <properties service="Retailer">
+                <property name="retailerName">amazon.com</property>
+            </properties>
+            <properties reference="warehouse">
+                <property name="component.name">WarehouseComponent1</property>
+            </properties>
+        </implementation.osgi>
+        <service name="Retailer"/>
+        
+        <reference name="warehouse" target="WarehouseComponent1"/>        
+        <property name="retailerName" type="xsd:string" >amazon.com</property> 
+    </component>
+    
+    <component name="RetailerComponent2">
+        <implementation.osgi
+                bundle="supplychain.Retailer"
+                bundleLocation="file:target/wiring/ds/Retailer.jar" >
+            
+            <properties service="Retailer">
+                <property name="retailerName">play.com</property>
+            </properties>
+            
+            <properties reference="warehouse">
+                <property name="component.name">WarehouseComponent1</property>
+            </properties>
+        </implementation.osgi>
+        <reference name="warehouse" target="WarehouseComponent1"/>
+        <property name="retailerName" type="xsd:string" >play.com</property> 
+    </component>
+    
+    <component name="RetailerComponent3">
+        <implementation.osgi
+                bundle="supplychain.Retailer"
+                bundleLocation="file:target/wiring/ds/Retailer.jar" >
+            
+            <properties service="Retailer">
+                <property name="retailerName">ebay.com</property>
+            </properties>
+            <properties reference="warehouse">
+                <property name="component.name">WarehouseComponent1</property>
+            </properties>
+        </implementation.osgi>
+        <reference name="warehouse" target="WarehouseComponent1"/>
+        <property name="retailerName" type="xsd:string" >ebay.com</property> 
+    </component>
+    
+    <component name="WarehouseComponent1">
+        
+        <implementation.osgi
+                bundle="supplychain.Warehouse"
+                bundleLocation="file:target/wiring/ds/Warehouse.jar" >
+                
+            <properties reference="shipper">
+                <property name="shipperName">ParcelForce</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="shipper" target="ShipperComponent2"  />
+    </component>
+
+
+    <component name="WarehouseComponent2">
+        
+        <implementation.osgi
+                bundle="supplychain.Warehouse"
+                bundleLocation="file:target/wiring/ds/Warehouse.jar" >
+                
+            <properties reference="shipper">
+                <property name="shipperName">RoyalMail</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="shipper" target="ShipperComponent1"  />
+    </component>
+    
+   
+    <component name="ShipperComponent1">
+        <implementation.osgi     
+            bundle="supplychain.Shipper"   
+            bundleLocation="file:target/wiring/ds/Shipper.jar">
+            
+            <properties service="Shipper">
+                <property name="shipperName">RoyalMail</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="customer" target="CustomerComponent" />
+        <property name="shipperName" type="xsd:string" >RoyalMail</property> 
+    </component>
+    
+     <component name="ShipperComponent2">
+        <implementation.osgi 
+            bundle="supplychain.Shipper"   
+            bundleLocation="file:target/wiring/ds/Shipper.jar">
+            
+            <properties service="Shipper">
+                <property name="shipperName">ParcelForce</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="customer" target="CustomerComponent" />
+        <property name="shipperName" type="xsd:string" >ParcelForce</property> 
+        
+    </component>
+    
+    
+</composite>

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-test1.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-test1.composite?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-test1.composite (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-test1.composite Mon Jul  2 05:16:31 2007
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	targetNamespace="http://supplychain"
+	xmlns:sp="http://supplychain"
+	name="supplychain">
+
+    <component name="CustomerComponent">
+        <implementation.osgi 
+                bundle="supplychain.Customer"
+                bundleLocation="file:target/wiring/Customer.jar" >
+            
+            <properties reference="retailer1">
+                <property name="retailerName">amazon.com</property>
+            </properties>
+            <properties reference="retailer2">
+                <property name="retailerName">play.com</property>
+            </properties>
+            <properties reference="retailer3">
+                <property name="retailerName">ebay.com</property>
+            </properties>
+        </implementation.osgi>
+            
+        <reference name="retailer1" target="RetailerComponent1/Retailer" />
+        
+        <reference name="retailer2" target="RetailerComponent2/Retailer" />
+        
+        <reference name="retailer3" target="RetailerComponent3/Retailer" />
+    </component>
+
+    <component name="RetailerComponent1">
+        <implementation.osgi
+                bundle="supplychain.Retailer"
+                bundleLocation="file:target/wiring/Retailer.jar" >
+            <properties service="Retailer">
+                <property name="retailerName">amazon.com</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="warehouse" target="WarehouseComponent1"/>        
+        <property name="retailerName" type="xsd:string" >amazon.com</property> 
+    </component>
+    
+    <component name="RetailerComponent2">
+        <implementation.osgi
+                bundle="supplychain.Retailer"
+                bundleLocation="file:target/wiring/Retailer.jar" >
+            
+            <properties service="Retailer">
+                <property name="retailerName">play.com</property>
+            </properties>
+        </implementation.osgi>
+        <reference name="warehouse" target="WarehouseComponent1"/>
+        <property name="retailerName" type="xsd:string" >play.com</property> 
+    </component>
+    
+    <component name="RetailerComponent3">
+        <implementation.osgi
+                bundle="supplychain.Retailer"
+                bundleLocation="file:target/wiring/Retailer.jar" >
+            
+            <properties service="Retailer">
+                <property name="retailerName">ebay.com</property>
+            </properties>
+        </implementation.osgi>
+        <reference name="warehouse" target="WarehouseComponent2"/>
+        <property name="retailerName" type="xsd:string" >ebay.com</property> 
+    </component>
+
+
+    <component name="WarehouseComponent1">
+        <implementation.java class="supplychain.warehouse.JavaWarehouseComponentImpl" />
+        
+        <reference name="shipper" target="ShipperComponent2"  />
+    </component>
+    
+    <component name="WarehouseComponent2">
+        <implementation.java class="supplychain.warehouse.JavaWarehouseComponentImpl" />
+        
+        <reference name="shipper" target="ShipperComponent1"  />
+    </component>
+    
+   
+    <component name="ShipperComponent1">
+        <implementation.osgi     
+            bundle="supplychain.Shipper"   
+            bundleLocation="file:target/wiring/Shipper.jar">
+            
+            <properties service="Shipper">
+                <property name="shipperName">RoyalMail</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="customer" target="CustomerComponent" />
+        <property name="shipperName" type="xsd:string" >RoyalMail</property> 
+    </component>
+    
+     <component name="ShipperComponent2">
+        <implementation.osgi 
+            bundle="supplychain.Shipper"   
+            bundleLocation="file:target/wiring/Shipper.jar">
+            
+            <properties service="Shipper">
+                <property name="shipperName">ParcelForce</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="customer" target="CustomerComponent" />
+        <property name="shipperName" type="xsd:string" >ParcelForce</property> 
+        
+    </component>
+    
+    
+</composite>

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-test2.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-test2.composite?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-test2.composite (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/wiring-test2.composite Mon Jul  2 05:16:31 2007
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	targetNamespace="http://supplychain"
+	xmlns:sp="http://supplychain"
+	name="supplychain">
+
+    <component name="CustomerComponent">
+        <implementation.osgi 
+                bundle="supplychain.Customer"
+                bundleLocation="file:target/wiring/Customer.jar" >
+            
+            <properties reference="retailer1">
+                <property name="retailerName">amazon.com</property>
+            </properties>
+            <properties reference="retailer2">
+                <property name="retailerName">play.com</property>
+            </properties>
+            <properties reference="retailer3">
+                <property name="retailerName">ebay.com</property>
+            </properties>
+        </implementation.osgi>
+            
+        <reference name="retailer1" target="RetailerComponent1/Retailer" />
+        
+        <reference name="retailer2" target="RetailerComponent2/Retailer" />
+        
+        <reference name="retailer3" target="RetailerComponent3/Retailer" />
+    </component>
+
+    <component name="RetailerComponent1">
+        <implementation.osgi
+                bundle="supplychain.Retailer"
+                bundleLocation="file:target/wiring/Retailer.jar" >
+            <properties service="Retailer">
+                <property name="retailerName">amazon.com</property>
+            </properties>
+            <properties reference="warehouse">
+                <property name="component.name">WarehouseComponent1</property>
+            </properties>
+        </implementation.osgi>
+        <service name="Retailer"/>
+        
+        <reference name="warehouse" target="WarehouseComponent1"/>        
+        <property name="retailerName" type="xsd:string" >amazon.com</property> 
+    </component>
+    
+    <component name="RetailerComponent2">
+        <implementation.osgi
+                bundle="supplychain.Retailer"
+                bundleLocation="file:target/wiring/Retailer.jar" >
+            
+            <properties service="Retailer">
+                <property name="retailerName">play.com</property>
+            </properties>
+            
+            <properties reference="warehouse">
+                <property name="component.name">WarehouseComponent1</property>
+            </properties>
+        </implementation.osgi>
+        <reference name="warehouse" target="WarehouseComponent1"/>
+        <property name="retailerName" type="xsd:string" >play.com</property> 
+    </component>
+    
+    <component name="RetailerComponent3">
+        <implementation.osgi
+                bundle="supplychain.Retailer"
+                bundleLocation="file:target/wiring/Retailer.jar" >
+            
+            <properties service="Retailer">
+                <property name="retailerName">ebay.com</property>
+            </properties>
+            <properties reference="warehouse">
+                <property name="component.name">WarehouseComponent1</property>
+            </properties>
+        </implementation.osgi>
+        <reference name="warehouse" target="WarehouseComponent1"/>
+        <property name="retailerName" type="xsd:string" >ebay.com</property> 
+    </component>
+    
+    <component name="WarehouseComponent1">
+        
+        <implementation.osgi
+                bundle="supplychain.Warehouse"
+                bundleLocation="file:target/wiring/Warehouse.jar" >
+                
+            <properties reference="shipper">
+                <property name="shipperName">ParcelForce</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="shipper" target="ShipperComponent2"  />
+    </component>
+
+
+    <component name="WarehouseComponent2">
+        
+        <implementation.osgi
+                bundle="supplychain.Warehouse"
+                bundleLocation="file:target/wiring/Warehouse.jar" >
+                
+            <properties reference="shipper">
+                <property name="shipperName">RoyalMail</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="shipper" target="ShipperComponent1"  />
+    </component>
+    
+   
+    <component name="ShipperComponent1">
+        <implementation.osgi     
+            bundle="supplychain.Shipper"   
+            bundleLocation="file:target/wiring/Shipper.jar">
+            
+            <properties service="Shipper">
+                <property name="shipperName">RoyalMail</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="customer" target="CustomerComponent" />
+        <property name="shipperName" type="xsd:string" >RoyalMail</property> 
+    </component>
+    
+     <component name="ShipperComponent2">
+        <implementation.osgi 
+            bundle="supplychain.Shipper"   
+            bundleLocation="file:target/wiring/Shipper.jar">
+            
+            <properties service="Shipper">
+                <property name="shipperName">ParcelForce</property>
+            </properties>
+        </implementation.osgi>
+        
+        <reference name="customer" target="CustomerComponent" />
+        <property name="shipperName" type="xsd:string" >ParcelForce</property> 
+        
+    </component>
+    
+    
+</composite>

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/ws-helloworld.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/ws-helloworld.composite?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/ws-helloworld.composite (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/sca/ws-helloworld.composite Mon Jul  2 05:16:31 2007
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           name="HelloWorld">
+
+    <service name="helloWorld" promote="HelloWorldService">
+        <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)" />
+        <!-- interface.java interface="helloworld.ws.HelloWorld" / -->
+        <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
+    </service>
+
+    <component name="HelloWorldService">
+		<implementation.java class="helloworld.ws.HelloWorldService"/>
+    </component>
+
+    <component name="HelloWorldComponent">
+		<!--implementation.java class="helloworld.HelloWorldComponent"/-->
+		
+		<implementation.osgi 
+            bundle="helloworld.HelloWorld"
+            bundleLocation="file:target/ws/HelloWorld.jar"
+        />
+        
+        <service name="OSGiHelloWorld"/>
+        
+        <reference name="helloWorldWS" />
+    </component>
+
+    <reference name="helloWorldWS" promote="HelloWorldComponent/helloWorldWS">
+        <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)" />
+        <!-- interface.java interface="helloworld.ws.HelloWorld" / -->
+        <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
+    </reference>
+
+</composite>

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/stockquote/StockQuote.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/stockquote/StockQuote.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/stockquote/StockQuote.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/stockquote/StockQuote.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <service name="StockQuoteService">
+        <interface.java interface="stockquote.StockQuote"/>
+    </service>
+    
+    <property name="currency" type="xsd:string" >GBP</property> 
+    <property name="exchangeRate" type="xsd:double" >1.0</property> 
+    
+</componentType>

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/stockquote/StockQuote.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/stockquote/StockQuote.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/stockquote/StockQuote.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Customer.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Customer.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Customer.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Customer.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+    <service name="Customer">
+        <interface.java interface="supplychain.customer.Customer"/>
+    </service>
+    <reference name="retailer1">
+            <interface.java interface="supplychain.retailer.Retailer"/>
+    </reference>
+    <reference name="retailer2">
+            <interface.java interface="supplychain.retailer.Retailer"/>
+    </reference>
+    <reference name="retailer3">
+            <interface.java interface="supplychain.retailer.Retailer"/>
+    </reference>
+      
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Customer.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Customer.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Customer.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerServices.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerServices.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerServices.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerServices.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+    <service name="CustomerService">
+        <interface.java interface="supplychain.customer.Customer"/>
+    </service>
+    <reference name="retailer1">
+            <interface.java interface="supplychain.retailer.Retailer"/>
+    </reference>
+    <reference name="retailer2">
+            <interface.java interface="supplychain.retailer.Retailer"/>
+    </reference>
+    <reference name="retailer3">
+            <interface.java interface="supplychain.retailer.Retailer"/>
+    </reference>
+      
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerServices.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerServices.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerServices.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerWithQuery.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerWithQuery.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerWithQuery.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerWithQuery.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+    <service name="Customer">
+        <interface.java interface="supplychain.customer.Customer"/>
+    </service>
+    <reference name="retailer">
+            <interface.java interface="supplychain.retailer.Retailer"/>
+    </reference>
+    <reference name="retailerQuery">
+            <interface.java interface="supplychain.retailer.RetailerQuery"/>
+    </reference>
+      
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerWithQuery.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerWithQuery.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/CustomerWithQuery.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Retailer.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Retailer.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Retailer.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Retailer.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <service name="Retailer">
+        <interface.java interface="supplychain.retailer.Retailer"/>
+    </service>
+    <reference name="warehouse">
+            <interface.java interface="supplychain.warehouse.Warehouse"/>
+    </reference>
+    <property name="retailerName" type="xsd:string" >default</property> 
+      
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Retailer.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Retailer.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Retailer.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerServices.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerServices.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerServices.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerServices.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <service name="RetailerService1">
+        <interface.java interface="supplychain.retailer.Retailer"/>
+    </service>
+    <service name="RetailerService2">
+        <interface.java interface="supplychain.retailer.Retailer"/>
+    </service>
+    <service name="RetailerService3">
+        <interface.java interface="supplychain.retailer.Retailer"/>
+    </service>
+    <reference name="warehouse">
+            <interface.java interface="supplychain.warehouse.Warehouse"/>
+    </reference>
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerServices.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerServices.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerServices.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerWithQuery.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerWithQuery.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerWithQuery.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerWithQuery.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <service name="Retailer">
+        <interface.java interface="supplychain.retailer.Retailer"/>
+    </service>
+    <service name="RetailerQuery">
+        <interface.java interface="supplychain.retailer.RetailerQuery"/>
+    </service>
+    <reference name="warehouse">
+            <interface.java interface="supplychain.warehouse.Warehouse"/>
+    </reference>
+    <reference name="warehouseQuery">
+            <interface.java interface="supplychain.warehouse.WarehouseQuery"/>
+    </reference>
+    <property name="retailerName" type="xsd:string" >default</property> 
+      
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerWithQuery.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerWithQuery.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/RetailerWithQuery.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Shipper.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Shipper.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Shipper.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Shipper.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <service name="Shipper">
+        <interface.java interface="supplychain.shipper.Shipper"/>
+    </service>
+    <reference name="customer">
+            <interface.java interface="supplychain.customer.Customer"/>
+    </reference>
+    <property name="shipperName" type="xsd:string" >default</property> 
+      
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Shipper.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Shipper.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Shipper.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/ShipperServices.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/ShipperServices.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/ShipperServices.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/ShipperServices.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <service name="ShipperService1">
+        <interface.java interface="supplychain.shipper.Shipper"/>
+    </service>
+    <service name="ShipperService2">
+        <interface.java interface="supplychain.shipper.Shipper"/>
+    </service>
+    <reference name="customer">
+            <interface.java interface="supplychain.customer.Customer"/>
+    </reference>
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/ShipperServices.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/ShipperServices.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/ShipperServices.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Warehouse.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Warehouse.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Warehouse.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Warehouse.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+    <service name="Warehouse">
+        <interface.java interface="supplychain.warehouse.Warehouse"/>
+    </service>
+    
+    <reference name="shipper">
+            <interface.java interface="supplychain.shipper.Shipper"/>
+    </reference>
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Warehouse.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Warehouse.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/Warehouse.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseServices.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseServices.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseServices.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseServices.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+    <service name="Warehouse">
+        <interface.java interface="supplychain.warehouse.Warehouse"/>
+    </service>
+    
+    <reference name="shipper">
+            <interface.java interface="supplychain.shipper.Shipper"/>
+    </reference>
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseServices.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseServices.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseServices.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseWithQuery.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseWithQuery.componentType?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseWithQuery.componentType (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseWithQuery.componentType Mon Jul  2 05:16:31 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+    <service name="Warehouse">
+        <interface.java interface="supplychain.warehouse.Warehouse"/>
+    </service>
+    <service name="WarehouseQuery">
+        <interface.java interface="supplychain.warehouse.WarehouseQuery"/>
+    </service>
+    
+    <reference name="shipper">
+            <interface.java interface="supplychain.shipper.Shipper"/>
+    </reference>
+</componentType>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseWithQuery.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseWithQuery.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/main/resources/supplychain/WarehouseWithQuery.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/HelloWorldTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/HelloWorldTestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/HelloWorldTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/HelloWorldTestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package helloworld;
+
+import helloworld.HelloWorld;
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+import util.OSGiTestUtil;
+
+
+public class HelloWorldTestCase extends TestCase {
+
+    private SCADomain scaDomain;
+    private HelloWorld helloWorld;
+
+    protected void setUp() throws Exception {
+        OSGiTestUtil.setUpOSGiTestRutime();
+        
+        scaDomain = SCADomain.newInstance("sca/ws-helloworld.composite");
+        helloWorld = scaDomain.getService(HelloWorld.class, "HelloWorldComponent");
+    }
+    
+    protected void tearDown() throws Exception {
+        scaDomain.close();
+        OSGiTestUtil.shutdownOSGiRuntime();
+    }
+    
+
+    public void testHelloWorld() throws Exception {
+        String greetings = helloWorld.getGreetings("petra");
+        System.out.println(greetings);
+        assertEquals("Hello petra", greetings);
+    }
+
+    
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/HelloWorldTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/HelloWorldTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/PassByRefTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/PassByRefTestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/PassByRefTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/PassByRefTestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,135 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package helloworld;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+import util.OSGiTestUtil;
+
+
+public class PassByRefTestCase extends TestCase {
+
+    private SCADomain scaDomain;
+    private Greetings greetingsJava;
+    private Greetings greetingsOSGi;
+    private String[] origNames = {"world"};
+    private String[] names;
+
+    protected void setUp() throws Exception {
+        OSGiTestUtil.setUpOSGiTestRutime();
+        
+        scaDomain = SCADomain.newInstance("sca/passbyref-test.composite");
+        greetingsJava = scaDomain.getService(Greetings.class, "JavaGreetingsComponent");
+        greetingsOSGi = scaDomain.getService(Greetings.class, "OSGiGreetingsComponent");
+        
+        names = new String[origNames.length];
+        System.arraycopy(origNames, 0, names, 0, names.length);
+    }
+    
+    protected void tearDown() throws Exception {
+        scaDomain.close();
+        OSGiTestUtil.shutdownOSGiRuntime();
+    }
+    
+    public void test() throws Exception {
+        
+        javaOSGiPassByValue();
+        osgiJavaPassByValue();
+        javaOSGiPassByRef();
+        osgiJavaPassByRef();
+        
+    }
+    
+
+    public void javaOSGiPassByValue() throws Exception {
+        
+        String[] greetings = greetingsJava.getGreetingsFromJava(names);
+        for (int i = 0; i < origNames.length; i++) {
+            assertEquals(origNames[i], names[i]);
+        }
+        for (int i = 0; i < origNames.length; i++) {
+
+            System.out.println(greetings[i]);
+            
+            assertEquals(greetings[i], 
+                    "Hello " + origNames[i] + "(From Java)(From OSGi)");
+        }
+        
+    }
+    
+    public void osgiJavaPassByValue() throws Exception {
+        String[] names = {
+                "world"
+        };
+        String[] greetings = greetingsOSGi.getGreetingsFromOSGi(names);
+        
+        for (int i = 0; i < origNames.length; i++) {
+            assertEquals(origNames[i], names[i]);
+        }
+        for (int i = 0; i < origNames.length; i++) {
+
+            System.out.println(greetings[i]);
+            
+            assertEquals(greetings[i], 
+                    "Hello " + origNames[i] + "(From OSGi)(From Java)");
+        }
+        
+
+
+    }
+    
+    public void javaOSGiPassByRef() throws Exception {
+        String[] names = {
+                "world"
+        };
+        String[] greetings = greetingsJava.getModifiedGreetingsFromJava(names);
+        for (int i = 0; i < origNames.length; i++) {
+            assertEquals("Hello " + origNames[i] + "(From Java)(From OSGi)", names[i]);
+        }
+        for (int i = 0; i < origNames.length; i++) {
+
+            System.out.println(greetings[i]);
+            
+            assertEquals(greetings[i], 
+                    "Hello " + origNames[i] + "(From Java)(From OSGi)");
+        }
+    }
+    
+    public void osgiJavaPassByRef() throws Exception {
+        String[] names = {
+                "world"
+        };
+        String[] greetings = greetingsOSGi.getModifiedGreetingsFromOSGi(names);
+        for (int i = 0; i < origNames.length; i++) {
+            assertEquals("Hello " + origNames[i] + "(From OSGi)(From Java)", names[i]);
+        }
+        for (int i = 0; i < origNames.length; i++) {
+
+            System.out.println(greetings[i]);
+            
+            assertEquals(greetings[i], 
+                    "Hello " + origNames[i] + "(From OSGi)(From Java)");
+        }
+    }
+
+    
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/PassByRefTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/helloworld/PassByRefTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/SupplyChainTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/SupplyChainTestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/SupplyChainTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/SupplyChainTestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package supplychain;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+
+import supplychain.customer.Customer;
+import util.OSGiTestUtil;
+
+/**
+ * Test case for supplychain - it is invoked with different composite files to test 
+ * various scenarios.
+ */
+public abstract class SupplyChainTestCase extends TestCase {
+
+    private String compositeName;
+    private SCADomain scaDomain;
+    public Customer customer;
+    
+    public SupplyChainTestCase(String compositeName) {
+        super();
+        this.compositeName = compositeName;
+    }
+
+    protected void setUp() throws Exception {
+
+        OSGiTestUtil.setUpOSGiTestRutime();
+        
+        scaDomain = SCADomain.newInstance(compositeName);
+        customer = scaDomain.getService(Customer.class, "CustomerComponent");
+    }
+    
+    protected void tearDown() throws Exception {
+        scaDomain.close();
+        
+        OSGiTestUtil.shutdownOSGiRuntime();
+    }
+
+
+    public void test() throws Exception {
+        
+        System.out.println("Main thread " + Thread.currentThread());
+        customer.purchaseBooks();
+        customer.purchaseGames();
+        long timeout = 5000L;
+        while (timeout > 0) {
+            if (customer.hasOutstandingOrders()) {
+                Thread.sleep(100);
+                timeout -= 100;
+            } else
+                break;
+        }
+        assertFalse(customer.hasOutstandingOrders());
+
+        System.out.println("Test complete");
+        
+    }
+    
+    
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/SupplyChainTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/SupplyChainTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/VersionedSupplyChainTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/VersionedSupplyChainTestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/VersionedSupplyChainTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/VersionedSupplyChainTestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package supplychain;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+import supplychain.customer.Customer;
+import util.OSGiTestUtil;
+
+/**
+ * OSGi test program - common code for versioned bundles
+ */
+public abstract class VersionedSupplyChainTestCase extends TestCase {
+    
+    private String compositeName;
+    private SCADomain scaDomain;
+    private Customer customer1;
+    private Customer customer2;
+    
+
+    public VersionedSupplyChainTestCase(String compositeName) {
+        super();
+        this.compositeName = compositeName;
+    }
+    
+    protected void setUp() throws Exception {
+        
+        OSGiTestUtil.setUpOSGiTestRutime();
+
+        scaDomain = SCADomain.newInstance(compositeName);
+        customer1 = scaDomain.getService(Customer.class, "CustomerComponent1");
+        customer2 = scaDomain.getService(Customer.class, "CustomerComponent2");
+    }
+    
+    protected void tearDown() throws Exception {
+        scaDomain.close();
+        
+        OSGiTestUtil.shutdownOSGiRuntime();
+    }
+   
+    public void test() throws Exception {
+        
+        System.out.println("Main thread " + Thread.currentThread());
+        customer1.purchaseBooks();
+        customer2.purchaseGames();
+        long timeout = 5000L;
+        while (timeout > 0) {
+            if (customer1.hasOutstandingOrders()) {
+                Thread.sleep(100);
+                timeout -= 100;
+            } else if (customer2.hasOutstandingOrders()) {
+                Thread.sleep(100);
+                timeout -= 100;
+            } else
+                break;
+        }
+        assertFalse(customer1.hasOutstandingOrders());
+        assertFalse(customer2.hasOutstandingOrders());
+
+        System.out.println("Test complete");
+        
+    }
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/VersionedSupplyChainTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/VersionedSupplyChainTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/DSFactoryTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/DSFactoryTestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/DSFactoryTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/DSFactoryTestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package supplychain.factory;
+
+
+/**
+ * OSGi test program - declarative with scopes other than composites which use OSGi service factories
+ */
+public class DSFactoryTestCase extends FactoryTestCase {
+
+    public DSFactoryTestCase() {
+        super("sca/factory-ds-test.composite");
+    }
+    
+    
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/DSFactoryTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/DSFactoryTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/FactoryTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/FactoryTestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/FactoryTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/FactoryTestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package supplychain.factory;
+
+import supplychain.SupplyChainTestCase;
+
+/**
+ * OSGi test program - declarative with scopes other than composites which use OSGi service factories
+ */
+public class FactoryTestCase extends SupplyChainTestCase {
+
+    public FactoryTestCase() {
+        super("sca/factory-test.composite");
+    }
+    
+    protected FactoryTestCase(String compositeName) {
+        super(compositeName);
+    }
+    
+    
+    @Override
+    public void test() throws Exception {
+        
+        System.out.println("Main thread " + Thread.currentThread());
+        customer.purchaseBooks();
+        assertFalse(customer.hasOutstandingOrders());
+        
+        customer.purchaseGames();       
+        assertFalse(customer.hasOutstandingOrders());
+
+        Thread.sleep(1000);
+        System.out.println("Test complete");
+        
+    }
+    
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/FactoryTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/factory/FactoryTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/DSInterfacesTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/DSInterfacesTestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/DSInterfacesTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/DSInterfacesTestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package supplychain.interfaces;
+
+import supplychain.SupplyChainTestCase;
+
+/**
+ * OSGi test program - declarative with components exposing multiple services with multiple interfaces
+ */
+public class DSInterfacesTestCase extends SupplyChainTestCase {
+
+    public DSInterfacesTestCase() {
+        super("sca/interfaces-ds-test.composite");
+    }
+   
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/DSInterfacesTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/DSInterfacesTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/InterfacesTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/InterfacesTestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/InterfacesTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/InterfacesTestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package supplychain.interfaces;
+
+import supplychain.SupplyChainTestCase;
+
+/**
+ * OSGi test program - procedural with components exposing multiple services with multiple interfaces
+ */
+public class InterfacesTestCase extends SupplyChainTestCase {
+
+    public InterfacesTestCase() {
+        super("sca/interfaces-test.composite");
+    }
+   
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/InterfacesTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/interfaces/InterfacesTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSProperties2TestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSProperties2TestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSProperties2TestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSProperties2TestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package supplychain.properties;
+
+
+/**
+ * OSGi test program - declarative with business properties
+ */
+public class DSProperties2TestCase extends Properties2TestCase {
+
+    public DSProperties2TestCase() {
+        super("sca/properties2-ds-test.composite");
+    }
+   
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSProperties2TestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSProperties2TestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSPropertiesTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSPropertiesTestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSPropertiesTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSPropertiesTestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package supplychain.properties;
+
+
+/**
+ * OSGi test program - declarative with business properties
+ */
+public class DSPropertiesTestCase extends PropertiesTestCase {
+
+    public DSPropertiesTestCase() {
+        super("sca/properties-ds-test.composite");
+    }
+   
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSPropertiesTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/DSPropertiesTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/Properties2TestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/Properties2TestCase.java?view=auto&rev=552481
==============================================================================
--- incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/Properties2TestCase.java (added)
+++ incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/Properties2TestCase.java Mon Jul  2 05:16:31 2007
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package supplychain.properties;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+import stockquote.StockQuote;
+import util.OSGiTestUtil;
+
+/**
+ * OSGi test program - procedural with business properties
+ */
+public class Properties2TestCase extends TestCase {
+    
+
+    private SCADomain scaDomain;
+    private StockQuote stockQuoteServiceUSD;
+    private StockQuote stockQuoteServiceEURO;
+    private String compositeName;
+    
+    public Properties2TestCase() {
+        super();
+        compositeName = "sca/properties2-test.composite";
+    }
+    
+    protected Properties2TestCase(String compositeName) {
+        super();
+        this.compositeName = compositeName;
+    }
+
+    protected void setUp() throws Exception {
+        
+        OSGiTestUtil.setUpOSGiTestRutime();
+        
+        scaDomain = SCADomain.newInstance(compositeName);
+        stockQuoteServiceUSD = scaDomain.getService(StockQuote.class, "USDStockQuoteComponent");
+        stockQuoteServiceEURO = scaDomain.getService(StockQuote.class, "EUROStockQuoteComponent");
+    }
+    
+    protected void tearDown() throws Exception {
+        scaDomain.close();
+        OSGiTestUtil.shutdownOSGiRuntime();
+    }
+    
+    public void test() throws Exception {
+    
+        double stockQuote = stockQuoteServiceUSD.getQuote("IBM");
+        
+        double expectedValue = 52.81 * 2.0;
+        
+        System.out.println("IBM: $" + stockQuote);
+        
+        assertTrue(stockQuote > expectedValue - 0.1 && stockQuote < expectedValue + 0.1);
+        
+        double stockQuote2 = stockQuoteServiceEURO.getQuote("IBM");
+        
+        double expectedValue2 = 52.81 * 1.48;
+        
+        System.out.println("IBM: Euro " + stockQuote2);
+        
+        assertTrue(stockQuote2 > expectedValue2 - 0.1 && stockQuote2 < expectedValue2 + 0.1);
+        
+    }
+        
+}

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/Properties2TestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/osgi-implementation/src/test/java/supplychain/properties/Properties2TestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org