summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/clients
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2009-09-16 06:56:33 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2009-09-16 06:56:33 +0000
commita71b61d9849faab265b9d0e6c1c1f92da6196528 (patch)
treee8e91760d16c7e0c149b3ba44a1bc5a3f348a212 /sandbox/travelsample/clients
parent64909b408c2bbed841866a1a397c52c4c06f82c5 (diff)
Add ant scripts and adjust packages for RMI and CORBA interop
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@815634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/clients')
-rw-r--r--sandbox/travelsample/clients/currency-converter-corba-client/build.xml44
-rw-r--r--sandbox/travelsample/clients/currency-converter-corba-client/src/main/java/scatours/CurrencyConverterCORBAClient.java4
-rw-r--r--sandbox/travelsample/clients/currency-converter-corba-client/src/main/resources/currency-converter.idl12
-rw-r--r--sandbox/travelsample/clients/currency-converter-jms-client/build.xml45
-rw-r--r--sandbox/travelsample/clients/currency-converter-rmi-client/build.xml44
-rw-r--r--sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java (renamed from sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/scatours/currencyconverter/CurrencyConverter.java)2
-rw-r--r--sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/scatours/CurrencyConverterRMIClient.java2
-rw-r--r--sandbox/travelsample/clients/currency-converter-ws-jaxws-client/build.xml52
-rw-r--r--sandbox/travelsample/clients/currency-converter-ws-jaxws-client/src/main/resources/wsdl/CurrencyConverter.wsdl8
9 files changed, 200 insertions, 13 deletions
diff --git a/sandbox/travelsample/clients/currency-converter-corba-client/build.xml b/sandbox/travelsample/clients/currency-converter-corba-client/build.xml
new file mode 100644
index 0000000000..84fc3bf1d3
--- /dev/null
+++ b/sandbox/travelsample/clients/currency-converter-corba-client/build.xml
@@ -0,0 +1,44 @@
+<!--
+ * 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 name="scatours-client-currency-converter-corba" default="compile">
+ <property environment="env"/>
+
+ <target name="compile">
+ <mkdir dir="target/classes"/>
+ <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
+ <src path="src/main/java"/>
+ </javac>
+ </target>
+
+ <target name="run">
+ <java classname="scatours.CurrencyConverterCORBAClient" fork="true">
+ <classpath>
+ <pathelement location="target/classes"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete includeemptydirs="true">
+ <fileset dir="target"/>
+ </delete>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/clients/currency-converter-corba-client/src/main/java/scatours/CurrencyConverterCORBAClient.java b/sandbox/travelsample/clients/currency-converter-corba-client/src/main/java/scatours/CurrencyConverterCORBAClient.java
index 295d6856fe..8581c09d5f 100644
--- a/sandbox/travelsample/clients/currency-converter-corba-client/src/main/java/scatours/CurrencyConverterCORBAClient.java
+++ b/sandbox/travelsample/clients/currency-converter-corba-client/src/main/java/scatours/CurrencyConverterCORBAClient.java
@@ -21,8 +21,8 @@ package scatours;
import org.omg.CORBA.ORB;
import org.omg.CORBA.Object;
-import scatours.currencyconverter.CurrencyConverter;
-import scatours.currencyconverter.CurrencyConverterHelper;
+import com.tuscanyscatours.currencyconverter.CurrencyConverter;
+import com.tuscanyscatours.currencyconverter.CurrencyConverterHelper;
public class CurrencyConverterCORBAClient {
diff --git a/sandbox/travelsample/clients/currency-converter-corba-client/src/main/resources/currency-converter.idl b/sandbox/travelsample/clients/currency-converter-corba-client/src/main/resources/currency-converter.idl
index 18c2ade028..1ff24291f5 100644
--- a/sandbox/travelsample/clients/currency-converter-corba-client/src/main/resources/currency-converter.idl
+++ b/sandbox/travelsample/clients/currency-converter-corba-client/src/main/resources/currency-converter.idl
@@ -17,11 +17,13 @@
* under the License.
*/
-module scatours {
- module currencyconverter {
- interface CurrencyConverter {
- double getExchangeRate(in string fromCurrencyCode, in string toCurrencyCode);
- double convert(in string fromCurrencyCode, in string toCurrencyCode, in double amount);
+module com {
+ module tuscanyscatours {
+ module currencyconverter {
+ interface CurrencyConverter {
+ double getExchangeRate(in string fromCurrencyCode, in string toCurrencyCode);
+ double convert(in string fromCurrencyCode, in string toCurrencyCode, in double amount);
+ };
};
};
};
diff --git a/sandbox/travelsample/clients/currency-converter-jms-client/build.xml b/sandbox/travelsample/clients/currency-converter-jms-client/build.xml
new file mode 100644
index 0000000000..0014765a4c
--- /dev/null
+++ b/sandbox/travelsample/clients/currency-converter-jms-client/build.xml
@@ -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.
+-->
+
+<project name="scatours-client-currency-converter-jms" default="compile">
+ <property environment="env"/>
+
+ <target name="compile">
+ <mkdir dir="target/classes"/>
+ <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
+ <src path="src/main/java"/>
+ </javac>
+ </target>
+
+ <target name="run">
+ <java classname="scatours.CurrencyConverterJMSClient" fork="true">
+ <classpath>
+ <pathelement location="target/classes"/>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete includeemptydirs="true">
+ <fileset dir="target"/>
+ </delete>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/clients/currency-converter-rmi-client/build.xml b/sandbox/travelsample/clients/currency-converter-rmi-client/build.xml
new file mode 100644
index 0000000000..0a7a607fda
--- /dev/null
+++ b/sandbox/travelsample/clients/currency-converter-rmi-client/build.xml
@@ -0,0 +1,44 @@
+<!--
+ * 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 name="scatours-client-currency-converter-rmi" default="compile">
+ <property environment="env"/>
+
+ <target name="compile">
+ <mkdir dir="target/classes"/>
+ <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
+ <src path="src/main/java"/>
+ </javac>
+ </target>
+
+ <target name="run">
+ <java classname="scatours.CurrencyConverterRMIClient" fork="true">
+ <classpath>
+ <pathelement location="target/classes"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete includeemptydirs="true">
+ <fileset dir="target"/>
+ </delete>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/scatours/currencyconverter/CurrencyConverter.java b/sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java
index defca47ee5..68753adc3a 100644
--- a/sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/scatours/currencyconverter/CurrencyConverter.java
+++ b/sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package scatours.currencyconverter;
+package com.tuscanyscatours.currencyconverter;
/**
* The CurrencyConverter service interface
diff --git a/sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/scatours/CurrencyConverterRMIClient.java b/sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/scatours/CurrencyConverterRMIClient.java
index 18c255e261..c825ecc64f 100644
--- a/sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/scatours/CurrencyConverterRMIClient.java
+++ b/sandbox/travelsample/clients/currency-converter-rmi-client/src/main/java/scatours/CurrencyConverterRMIClient.java
@@ -21,7 +21,7 @@ package scatours;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
-import scatours.currencyconverter.CurrencyConverter;
+import com.tuscanyscatours.currencyconverter.CurrencyConverter;
public class CurrencyConverterRMIClient {
diff --git a/sandbox/travelsample/clients/currency-converter-ws-jaxws-client/build.xml b/sandbox/travelsample/clients/currency-converter-ws-jaxws-client/build.xml
new file mode 100644
index 0000000000..8b866698ff
--- /dev/null
+++ b/sandbox/travelsample/clients/currency-converter-ws-jaxws-client/build.xml
@@ -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.
+-->
+
+<project name="scatours-client-currency-converter-ws-jaxws" default="compile">
+ <property environment="env"/>
+
+ <target name="compile">
+ <mkdir dir="target/classes"/>
+ <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
+ <src path="src/main/java"/>
+ <!--
+ <classpath>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ -->
+ </javac>
+ </target>
+
+ <target name="run">
+ <java classname="scatours.CurrencyConverterWSClient" fork="true">
+ <classpath>
+ <pathelement location="target/classes"/>
+ <!--
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ -->
+ </classpath>
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete includeemptydirs="true">
+ <fileset dir="target"/>
+ </delete>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/clients/currency-converter-ws-jaxws-client/src/main/resources/wsdl/CurrencyConverter.wsdl b/sandbox/travelsample/clients/currency-converter-ws-jaxws-client/src/main/resources/wsdl/CurrencyConverter.wsdl
index 1498ed0008..055431bbf2 100644
--- a/sandbox/travelsample/clients/currency-converter-ws-jaxws-client/src/main/resources/wsdl/CurrencyConverter.wsdl
+++ b/sandbox/travelsample/clients/currency-converter-ws-jaxws-client/src/main/resources/wsdl/CurrencyConverter.wsdl
@@ -17,12 +17,12 @@
* specific language governing permissions and limitations
* under the License.
-->
-<wsdl:definitions name="CurrencyConverterService" targetNamespace="http://currencyconverter.scatours/"
- xmlns:tns="http://currencyconverter.scatours/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+<wsdl:definitions name="CurrencyConverterService" targetNamespace="http://currencyconverter.tuscanyscatours.com/"
+ xmlns:tns="http://currencyconverter.tuscanyscatours.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:SOAP11="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
- <xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://currencyconverter.scatours/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://currencyconverter.tuscanyscatours.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="getExchangeRate">
<xs:complexType>
<xs:sequence>
@@ -109,7 +109,7 @@
</wsdl:binding>
<wsdl:service name="CurrencyConverterService">
<wsdl:port name="CurrencyConverterPort" binding="tns:CurrencyConverterBinding">
- <SOAP:address location="http://10.10.10.135:8080/CurrencyConverter"/>
+ <SOAP:address location="http://localhost:8080/CurrencyConverter"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>