diff options
Diffstat (limited to '')
13 files changed, 307 insertions, 15 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> diff --git a/sandbox/travelsample/launchers/currency-converter-jms/build.xml b/sandbox/travelsample/launchers/currency-converter-jms/build.xml new file mode 100644 index 0000000000..d5db4633a3 --- /dev/null +++ b/sandbox/travelsample/launchers/currency-converter-jms/build.xml @@ -0,0 +1,57 @@ +<!--
+ * 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-launcher-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"/>
+ <classpath>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="run-broker">
+ <java classname="scatours.JMSBrokerLauncher" fork="true">
+ <classpath>
+ <pathelement location="target/classes"/>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="run">
+ <java classname="scatours.CurrencyConverterJMSLauncher" 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/launchers/currency-converter-rmi/build.xml b/sandbox/travelsample/launchers/currency-converter-rmi/build.xml new file mode 100644 index 0000000000..1d2fc52a26 --- /dev/null +++ b/sandbox/travelsample/launchers/currency-converter-rmi/build.xml @@ -0,0 +1,48 @@ +<!--
+ * 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-launcher-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"/>
+ <classpath>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="run">
+ <java classname="scatours.CurrencyConverterRMILauncher" 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/launchers/currency-converter-rmi/src/main/java/scatours/currencyconverter/CurrencyConverter.java b/sandbox/travelsample/launchers/currency-converter-rmi/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java index 6d0efc8c66..24d945b2f4 100644 --- a/sandbox/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/currencyconverter/CurrencyConverter.java +++ b/sandbox/travelsample/launchers/currency-converter-rmi/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;
import org.osoa.sca.annotations.Remotable;
diff --git a/sandbox/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java b/sandbox/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java index 7405ce3207..c614886820 100644 --- a/sandbox/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java +++ b/sandbox/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java @@ -24,7 +24,7 @@ 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;
+import com.tuscanyscatours.currencyconverter.CurrencyConverter;
public class CurrencyConverterRMILauncher {
|