diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-15 13:11:02 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-15 13:11:02 +0000 |
commit | 6a15ee52d19418ce6c0f34019fae6ae1dd70446f (patch) | |
tree | 531db6599f8aca5877c5a8cac10b498ef6128a5f /sandbox/travelsample | |
parent | ed800b23079810323d561f1d97f249e7d7fc2341 (diff) |
Delete contributions/currency-corba-contribution and launchers/currency-converter-corba-launcher
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@815314 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample')
6 files changed, 0 insertions, 273 deletions
diff --git a/sandbox/travelsample/contributions/currency-corba-contribution/pom.xml b/sandbox/travelsample/contributions/currency-corba-contribution/pom.xml deleted file mode 100644 index 80a7dcf03d..0000000000 --- a/sandbox/travelsample/contributions/currency-corba-contribution/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ -<?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.
--->
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-sca</artifactId>
- <version>1.6-SNAPSHOT</version>
- <!--relativePath>../../pom.xml</relativePath-->
- </parent><version>1.0-SNAPSHOT</version>
- <artifactId>scatours-currency-corba-contribution</artifactId>
- <name>Apache Tuscany SCA Tours Currency Converter Contribution With CORBA Binding</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-implementation-java-runtime</artifactId>
- <version>1.6-SNAPSHOT</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.5</version>
- <scope>test</scope>
- </dependency>
-
- </dependencies>
-
- <build>
- <finalName>${artifactId}</finalName>
- </build>
-</project>
diff --git a/sandbox/travelsample/contributions/currency-corba-contribution/src/main/resources/META-INF/sca-contribution.xml b/sandbox/travelsample/contributions/currency-corba-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 31875cc170..0000000000 --- a/sandbox/travelsample/contributions/currency-corba-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?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.
--->
-<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0">
- <import.java package="scatours.currencyconverter"/>
-</contribution>
\ No newline at end of file diff --git a/sandbox/travelsample/contributions/currency-corba-contribution/src/main/resources/currency-converter-corba.composite b/sandbox/travelsample/contributions/currency-corba-contribution/src/main/resources/currency-converter-corba.composite deleted file mode 100644 index da96c9950a..0000000000 --- a/sandbox/travelsample/contributions/currency-corba-contribution/src/main/resources/currency-converter-corba.composite +++ /dev/null @@ -1,32 +0,0 @@ -<?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:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://goodvaluetrips.com/"
- name="currencyconverter">
-
- <component name="CurrencyConverter">
- <implementation.java class="scatours.currencyconverter.CurrencyConverterImpl" />
- <service name="CurrencyConverter">
- <interface.java interface="scatours.currencyconverter.CurrencyConverter" />
- <tuscany:binding.corba host="localhost" port="5080" name="CurrencyConverterCORBAService"/>
- </service>
- </component>
-</composite>
diff --git a/sandbox/travelsample/launchers/currency-converter-corba-launcher/pom.xml b/sandbox/travelsample/launchers/currency-converter-corba-launcher/pom.xml deleted file mode 100644 index 807958dd4d..0000000000 --- a/sandbox/travelsample/launchers/currency-converter-corba-launcher/pom.xml +++ /dev/null @@ -1,77 +0,0 @@ -<?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.
--->
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-sca</artifactId>
- <version>1.6-SNAPSHOT</version>
- <!--relativePath>../../pom.xml</relativePath-->
- </parent><version>1.0-SNAPSHOT</version>
- <artifactId>scatours-currency-converter-corba-launcher</artifactId>
- <name>Apache Tuscany SCA Tours Currency Converter CORBA Launcher</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-node-api</artifactId>
- <version>1.6-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-implementation-java-runtime</artifactId>
- <version>1.6-SNAPSHOT</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-implementation-node-runtime</artifactId>
- <version>1.6-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-corba-runtime</artifactId>
- <version>1.6-SNAPSHOT</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-host-corba-jse-tns</artifactId>
- <version>1.6-SNAPSHOT</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.5</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <finalName>${artifactId}</finalName>
- </build>
-</project>
diff --git a/sandbox/travelsample/launchers/currency-converter-corba-launcher/src/main/java/scatours/LaunchCurrencyConverterCORBANode.java b/sandbox/travelsample/launchers/currency-converter-corba-launcher/src/main/java/scatours/LaunchCurrencyConverterCORBANode.java deleted file mode 100644 index a2b4e13647..0000000000 --- a/sandbox/travelsample/launchers/currency-converter-corba-launcher/src/main/java/scatours/LaunchCurrencyConverterCORBANode.java +++ /dev/null @@ -1,55 +0,0 @@ -/*
- * 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;
-
-import scatours.currencyconverter.CurrencyConverter;
-
-public class LaunchCurrencyConverterCORBANode {
-
- public static void main(String[] args) throws Exception {
- SCAContribution currencyCORBAContribution =
- new SCAContribution("currency-corba",
- "../../contributions/currency-corba-contribution/target/classes");
- SCAContribution currencyContribution =
- new SCAContribution("currency",
- "../../contributions/currency-contribution/target/classes");
-
- SCANode node = SCANodeFactory.newInstance().createSCANode(
- "currency-converter-corba.composite",currencyContribution, currencyCORBAContribution);
- node.start();
-
- System.out.println("Quick currency converter test");
- CurrencyConverter converter = ((SCAClient)node).getService(
- CurrencyConverter.class, "CurrencyConverter");
- System.out.println("USD -> GBP = "
- + converter.getExchangeRate("USD", "GBP"));
- System.out.println("100 USD = "
- + converter.convert("USD", "GBP", 100) + "GBP");
-
- System.out.println("Node started - Press enter to shutdown.");
- System.in.read();
- node.stop();
- }
-}
diff --git a/sandbox/travelsample/launchers/currency-converter-corba-launcher/src/main/java/scatours/currencyconverter/CurrencyConverter.java b/sandbox/travelsample/launchers/currency-converter-corba-launcher/src/main/java/scatours/currencyconverter/CurrencyConverter.java deleted file mode 100644 index 6d0efc8c66..0000000000 --- a/sandbox/travelsample/launchers/currency-converter-corba-launcher/src/main/java/scatours/currencyconverter/CurrencyConverter.java +++ /dev/null @@ -1,36 +0,0 @@ -/*
- * 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.currencyconverter;
-
-import org.osoa.sca.annotations.Remotable;
-
-/**
- * The CurrencyConverter service interface
- */
-@Remotable
-public interface CurrencyConverter {
-
- double getExchangeRate(String fromCurrencyCode,
- String toCurrencyCode);
-
- double convert(String fromCurrencyCode,
- String toCurrencyCode,
- double amount);
-
-}
|