diff options
Diffstat (limited to '')
8 files changed, 164 insertions, 0 deletions
diff --git a/sandbox/travelsample/launchers/introducing-domain-launcher/build.xml b/sandbox/travelsample/launchers/introducing-domain-launcher/build.xml new file mode 100644 index 0000000000..268464c33a --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain-launcher/build.xml @@ -0,0 +1,36 @@ +<!--
+ * 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-introducing-domain-launcher" default="run">
+ <property environment="env"/>
+
+ <target name="run">
+ <java classname="org.apache.tuscany.sca.node.launcher.DomainManagerLauncher"
+ dir="target/classes" fork="true">
+ <classpath>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete dir="./target"/>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/launchers/introducing-domain-launcher/pom.xml b/sandbox/travelsample/launchers/introducing-domain-launcher/pom.xml new file mode 100644 index 0000000000..f696b836f0 --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain-launcher/pom.xml @@ -0,0 +1,58 @@ +<?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-introducing-domain-launcher</artifactId>
+ <name>Apache Tuscany SCA Tours Introducing Domain Launcher</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours-introducing-tuscanyscatours-contribution</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours-introducing-goodvaluetrips-contribution</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours-introducing-client-contribution</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+
+</project>
diff --git a/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud.composite b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud.composite new file mode 100644 index 0000000000..133b4c187a --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud.composite @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<composite local="true" name="cloud" + targetNamespace="http://tuscany.apache.org/xmlns/sca/1.0" + xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:ns1="http://www.osoa.org/xmlns/sca/1.0"> + <include name="ns2:ToursNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/> + <include name="ns2:TripsNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/> + <include name="ns2:ClientNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/> +</composite> diff --git a/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/ClientNode.composite b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/ClientNode.composite new file mode 100644 index 0000000000..14d8417ed2 --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/ClientNode.composite @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0" xmlns:c="http://client.scatours/" targetNamespace="http://tuscany.apache.org/cloud" name="ClientNode"> + + <component name="ClientNode"> + <t:implementation.node uri="introducing-client" composite="c:Client" /> + <service name="Node"> + <binding.sca uri="http://localhost:8083" /> + <binding.ws uri="http://localhost:8083" /> + <t:binding.http uri="http://localhost:8083" /> + <t:binding.jsonrpc uri="http://localhost:8083" /> + <t:binding.atom uri="http://localhost:8083" /> + </service> + </component> +</composite>
\ No newline at end of file diff --git a/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/ToursNode.composite b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/ToursNode.composite new file mode 100644 index 0000000000..9408da0e0d --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/ToursNode.composite @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0" xmlns:c="http://tuscanyscatours.com/" targetNamespace="http://tuscany.apache.org/cloud" name="ToursNode"> + + <component name="ToursNode"> + <t:implementation.node uri="introducing-tours" composite="c:Tours" /> + <service name="Node"> + <binding.sca uri="http://localhost:8081" /> + <binding.ws uri="http://localhost:8081" /> + <t:binding.http uri="http://localhost:8081" /> + <t:binding.jsonrpc uri="http://localhost:8081" /> + <t:binding.atom uri="http://localhost:8081" /> + </service> + </component> +</composite>
\ No newline at end of file diff --git a/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/TripsNode.composite b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/TripsNode.composite new file mode 100644 index 0000000000..d769e89203 --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/TripsNode.composite @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0" xmlns:c="http://goodvaluetrips.com/" targetNamespace="http://tuscany.apache.org/cloud" name="TripsNode"> + + <component name="TripsNode"> + <t:implementation.node uri="introducing-trips" composite="c:Trips" /> + <service name="Node"> + <binding.sca uri="http://localhost:8082" /> + <binding.ws uri="http://localhost:8082" /> + <t:binding.http uri="http://localhost:8082" /> + <t:binding.jsonrpc uri="http://localhost:8082" /> + <t:binding.atom uri="http://localhost:8082" /> + </service> + </component> +</composite>
\ No newline at end of file diff --git a/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/domain.composite b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/domain.composite new file mode 100644 index 0000000000..5591ab3709 --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/domain.composite @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<composite local="true" name="domain" + targetNamespace="http://tuscany.apache.org/xmlns/sca/1.0" + xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:ns1="http://www.osoa.org/xmlns/sca/1.0"> + <include name="ns2:Tours" uri="introducing-tours" xmlns:ns2="http://tuscanyscatours.com/"/> + <include name="ns2:Trips" uri="introducing-trips" xmlns:ns2="http://goodvaluetrips.com/"/> + <include name="ns2:Client" uri="introducing-client" xmlns:ns2="http://client.scatours/"/> +</composite> diff --git a/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/workspace.xml b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/workspace.xml new file mode 100644 index 0000000000..5910ae176f --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/workspace.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<workspace xmlns="http://tuscany.apache.org/xmlns/sca/1.0" + xmlns:ns1="http://tuscany.apache.org/xmlns/sca/1.0"> + <contribution location="file:./cloud" + uri="http://tuscany.apache.org/cloud"/> + <contribution location="file:../../../../contributions/introducing-tuscanyscatours-contribution/target/scatours-introducing-tuscanyscatours-contribution.jar" + uri="introducing-tours"/> + <contribution location="file:../../../../contributions/introducing-goodvaluetrips-contribution/target/scatours-introducing-goodvaluetrips-contribution.jar" + uri="introducing-trips"/> + <contribution location="file:../../../../contributions/introducing-client-contribution/target/scatours-introducing-client-contribution.jar" + uri="introducing-client"/> +</workspace> |