You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2009/07/26 12:23:02 UTC

svn commit: r797902 - in /tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src: main/resources/ main/resources/META-INF/ test/java/scatours/payment/ test/resources/ test/resources/META-INF/

Author: slaws
Date: Sun Jul 26 10:23:02 2009
New Revision: 797902

URL: http://svn.apache.org/viewvc?rev=797902&view=rev
Log:
Separate out the test client component from the BPEL payment component into distinct composites so that the payment composite can be reused as is

Added:
    tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite   (with props)
    tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite   (with props)
Removed:
    tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment.composite
Modified:
    tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml
    tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java
    tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml

Modified: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml?rev=797902&r1=797901&r2=797902&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml (original)
+++ tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml Sun Jul 26 10:23:02 2009
@@ -17,7 +17,9 @@
     * specific language governing permissions and limitations
     * under the License.    
 -->
-<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0">
+<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"
+             xmlns:pp="http://www.tuscanyscatours.com/Payment" >
    <export namespace="http://www.tuscanyscatours.com/Payment"/>
    <export namespace="http://www.tuscanyscatours.com/Payment/"/>
+   <deployable composite="pp:payment" />
 </contribution>
\ No newline at end of file

Added: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite?rev=797902&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite (added)
+++ tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite Sun Jul 26 10:23:02 2009
@@ -0,0 +1,40 @@
+<?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:t="http://tuscany.apache.org/xmlns/sca/1.0"
+           xmlns:pp="http://www.tuscanyscatours.com/Payment" 
+           targetNamespace="http://www.tuscanyscatours.com/Payment" 
+           name="payment">
+    
+    <component name="Payment">
+        <implementation.bpel process="pp:Payment"/>
+        <service name="paymentPartnerLink">
+            <interface.wsdl interface="http://www.tuscanyscatours.com/Payment/#wsdl.interface(Payment)" />
+            <binding.ws uri="http://localhost:8080/Payment" wsdlElement="http://www.tuscanyscatours.com/Payment/#wsdl.service(PaymentService)"/>
+        </service>
+        <reference name="creditCardPaymentPartnerLink">
+            <binding.ws uri="http://localhost:8082/CreditCardPayment"/>
+        </reference>
+        <reference name="emailGatewayPartnerLink">
+            <binding.ws uri="http://localhost:8088/EmailGateway"/>
+        </reference>       
+    </component>    
+
+</composite>
\ No newline at end of file

Propchange: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java?rev=797902&r1=797901&r2=797902&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java (original)
+++ tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java Sun Jul 26 10:23:02 2009
@@ -50,7 +50,7 @@
                 
             emailGatewayNode.start();            
    
-            paymentNode = SCANodeFactory.newInstance().createSCANode("payment.composite", 
+            paymentNode = SCANodeFactory.newInstance().createSCANode(null, 
                     new SCAContribution("payment-bpel", "./target/classes"),
                     new SCAContribution("payment-bpel-test", "./target/test-classes"));
     

Modified: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml?rev=797902&r1=797901&r2=797902&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml (original)
+++ tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml Sun Jul 26 10:23:02 2009
@@ -17,7 +17,9 @@
     * specific language governing permissions and limitations
     * under the License.    
 -->
-<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0">
+<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"
+              xmlns:pp="http://www.tuscanyscatours.com/Payment" >
    <import namespace="http://www.tuscanyscatours.com/Payment"/>
    <import namespace="http://www.tuscanyscatours.com/Payment/"/>
+   <deployable composite="pp:paymentClient" />
 </contribution>
\ No newline at end of file

Added: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite?rev=797902&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite (added)
+++ tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite Sun Jul 26 10:23:02 2009
@@ -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.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+           xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
+           xmlns:pp="http://www.tuscanyscatours.com/Payment" 
+           targetNamespace="http://www.tuscanyscatours.com/Payment" 
+           name="paymentClient">
+           
+    <component name="PaymentClient">
+        <implementation.java class="scatours.payment.client.PaymentClientImpl" />
+        <reference name="payment">
+            <binding.ws uri="http://localhost:8080/Payment" />
+        </reference>
+    </component>
+
+</composite>
\ No newline at end of file

Propchange: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: tuscany/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml