From 7539d062e07745ac0bc3d411d64f7d28637fdf22 Mon Sep 17 00:00:00 2001 From: nash Date: Tue, 15 Sep 2009 16:12:30 +0000 Subject: Apply new naming conventions to contributions/databinding-client and launchers/databinding git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@815382 13f79535-47bb-0310-9956-ffa450edef68 --- .../contributions/databinding-client/build.xml | 45 +++++++ .../contributions/databinding-client/pom.xml | 48 +++++++ .../src/main/java/scatours/client/TestClient.java | 42 ++++++ .../main/resources/META-INF/sca-contribution.xml | 24 ++++ .../src/main/resources/client.composite | 28 ++++ .../src/main/resources/payment.composite | 9 +- sandbox/travelsample/contributions/pom.xml | 2 +- .../travelsample/launchers/databinding/build.xml | 48 +++++++ sandbox/travelsample/launchers/databinding/pom.xml | 147 +++++++++++++++++++++ .../main/java/scatours/DatabindingLauncher.java | 45 +++++++ sandbox/travelsample/launchers/pom.xml | 2 +- 11 files changed, 434 insertions(+), 6 deletions(-) create mode 100644 sandbox/travelsample/contributions/databinding-client/build.xml create mode 100644 sandbox/travelsample/contributions/databinding-client/pom.xml create mode 100644 sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java create mode 100644 sandbox/travelsample/contributions/databinding-client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sandbox/travelsample/contributions/databinding-client/src/main/resources/client.composite create mode 100644 sandbox/travelsample/launchers/databinding/build.xml create mode 100644 sandbox/travelsample/launchers/databinding/pom.xml create mode 100644 sandbox/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java (limited to 'sandbox') diff --git a/sandbox/travelsample/contributions/databinding-client/build.xml b/sandbox/travelsample/contributions/databinding-client/build.xml new file mode 100644 index 0000000000..226a81e324 --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client/build.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/contributions/databinding-client/pom.xml b/sandbox/travelsample/contributions/databinding-client/pom.xml new file mode 100644 index 0000000000..e5d88b7d2e --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client/pom.xml @@ -0,0 +1,48 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6-SNAPSHOT + + 1.0-SNAPSHOT + scatours-contribution-databinding-client + Apache Tuscany SCA Tours Databinding Client Contribution + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6-SNAPSHOT + + + + org.apache.tuscany.sca + scatours-contribution-payment-java + 1.0-SNAPSHOT + + + + + ${artifactId} + + diff --git a/sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java b/sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java new file mode 100644 index 0000000000..8f69ce9d5f --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java @@ -0,0 +1,42 @@ +/* + * 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 scatours.client; + +import java.math.BigDecimal; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +import com.tuscanyscatours.payment.Payment; + +@Service(Runnable.class) +public class TestClient { + @Reference + protected Payment payment; + + public TestClient() { + } + + public void run() { + System.out.println("Call Payment component"); + System.out.println(payment.makePaymentMember("c-0", 100.00f)); + System.out.println(payment.makePaymentMember("c-1", 100.00f)); + } +} diff --git a/sandbox/travelsample/contributions/databinding-client/src/main/resources/META-INF/sca-contribution.xml b/sandbox/travelsample/contributions/databinding-client/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..87e8535676 --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + + diff --git a/sandbox/travelsample/contributions/databinding-client/src/main/resources/client.composite b/sandbox/travelsample/contributions/databinding-client/src/main/resources/client.composite new file mode 100644 index 0000000000..e19697290c --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client/src/main/resources/client.composite @@ -0,0 +1,28 @@ + + + + + + + + + diff --git a/sandbox/travelsample/contributions/payment-java/src/main/resources/payment.composite b/sandbox/travelsample/contributions/payment-java/src/main/resources/payment.composite index 26f1fd8f23..b4dcd328b1 100644 --- a/sandbox/travelsample/contributions/payment-java/src/main/resources/payment.composite +++ b/sandbox/travelsample/contributions/payment-java/src/main/resources/payment.composite @@ -24,13 +24,14 @@ - + + - + - + - + 0.02 diff --git a/sandbox/travelsample/contributions/pom.xml b/sandbox/travelsample/contributions/pom.xml index 42cc847fdc..66571e552b 100644 --- a/sandbox/travelsample/contributions/pom.xml +++ b/sandbox/travelsample/contributions/pom.xml @@ -50,7 +50,7 @@ currency-jsp currency-rmi currency-ws - databinding-client-contribution + databinding-client emailgateway feed-logger-contribution flight diff --git a/sandbox/travelsample/launchers/databinding/build.xml b/sandbox/travelsample/launchers/databinding/build.xml new file mode 100644 index 0000000000..5c1e4a1eea --- /dev/null +++ b/sandbox/travelsample/launchers/databinding/build.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/launchers/databinding/pom.xml b/sandbox/travelsample/launchers/databinding/pom.xml new file mode 100644 index 0000000000..8d86f71730 --- /dev/null +++ b/sandbox/travelsample/launchers/databinding/pom.xml @@ -0,0 +1,147 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6-SNAPSHOT + + 1.0-SNAPSHOT + scatours-launcher-databinding + Apache Tuscany SCA Tours Databinding Launcher + + + + org.apache.tuscany.sca + tuscany-node-api + 1.6-SNAPSHOT + + + + org.apache.tuscany.sca + tuscany-node-launcher + 1.6-SNAPSHOT + + + + org.apache.tuscany.sca + tuscany-domain-manager + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-node-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-widget-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-resource-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-atom-abdera + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-jsonrpc-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-http-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-sca-axis2 + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ejb-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-ejb + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-bpel-ode + 1.6-SNAPSHOT + runtime + + + + org.apache.derby + derby + 10.3.1.4 + runtime + + + + + + ${artifactId} + + diff --git a/sandbox/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java b/sandbox/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java new file mode 100644 index 0000000000..7128c966de --- /dev/null +++ b/sandbox/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java @@ -0,0 +1,45 @@ +/* + * 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 scatours; + +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; + +public class DatabindingLauncher { + public static void main(String[] args) throws Exception { + SCANode node1 = SCANodeFactory.newInstance().createSCANode(null, + new SCAContribution("paymentjava", "../../contributions/payment-java/target/classes"), + new SCAContribution("client", "../../contributions/databinding-client/target/classes")); + + SCANode node2 = SCANodeFactory.newInstance().createSCANode(null, + new SCAContribution("creditcardpaymentsdo", "../../contributions/creditcard-payment-sdo/target/classes")); + + node1.start(); + node2.start(); + + Runnable runner = ((SCAClient)node1).getService(Runnable.class, "TestClient/Runnable"); + runner.run(); + + node1.stop(); + node2.stop(); + } +} diff --git a/sandbox/travelsample/launchers/pom.xml b/sandbox/travelsample/launchers/pom.xml index abb24eef6c..fa38c0b315 100644 --- a/sandbox/travelsample/launchers/pom.xml +++ b/sandbox/travelsample/launchers/pom.xml @@ -43,7 +43,7 @@ currency-converter-jms currency-converter-rmi currency-converter-ws - databinding-launcher + databinding feed-logger-launcher interaction introducing -- cgit v1.2.3