summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sandbox/travelsample/launchers/introducing-client-launcher/build.xml48
-rw-r--r--sandbox/travelsample/launchers/introducing-client-launcher/pom.xml63
-rw-r--r--sandbox/travelsample/launchers/introducing-client-launcher/src/main/java/scatours/IntroducingClientLauncher.java37
-rw-r--r--sandbox/travelsample/launchers/introducing-domain-launcher/build.xml36
-rw-r--r--sandbox/travelsample/launchers/introducing-domain-launcher/pom.xml58
-rw-r--r--sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud.composite8
-rw-r--r--sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/ClientNode.composite14
-rw-r--r--sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/ToursNode.composite14
-rw-r--r--sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/cloud/TripsNode.composite14
-rw-r--r--sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/domain.composite8
-rw-r--r--sandbox/travelsample/launchers/introducing-domain-launcher/src/main/resources/workspace.xml12
-rw-r--r--sandbox/travelsample/launchers/introducing-tours-launcher/build.xml32
-rw-r--r--sandbox/travelsample/launchers/introducing-trips-launcher/build.xml32
-rw-r--r--sandbox/travelsample/launchers/pom.xml2
14 files changed, 378 insertions, 0 deletions
diff --git a/sandbox/travelsample/launchers/introducing-client-launcher/build.xml b/sandbox/travelsample/launchers/introducing-client-launcher/build.xml
new file mode 100644
index 0000000000..aa48a6638d
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-client-launcher/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-introducing-client-launcher" 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.IntroducingClientLauncher" 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/introducing-client-launcher/pom.xml b/sandbox/travelsample/launchers/introducing-client-launcher/pom.xml
new file mode 100644
index 0000000000..c8267916ad
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-client-launcher/pom.xml
@@ -0,0 +1,63 @@
+<?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-client-launcher</artifactId>
+ <name>Apache Tuscany SCA Tours Introducing 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>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/introducing-client-launcher/src/main/java/scatours/IntroducingClientLauncher.java b/sandbox/travelsample/launchers/introducing-client-launcher/src/main/java/scatours/IntroducingClientLauncher.java
new file mode 100644
index 0000000000..b45a14cd9c
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-client-launcher/src/main/java/scatours/IntroducingClientLauncher.java
@@ -0,0 +1,37 @@
+/*
+ * 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.SCANode;
+import org.apache.tuscany.sca.node.SCANodeFactory;
+
+public class IntroducingClientLauncher {
+
+ public static void main(String[] args) throws Exception {
+ SCANode node = SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/ClientNode");
+ node.start();
+
+ Runnable client = ((SCAClient)node).getService(Runnable.class, "TestClient/Runnable");
+ client.run();
+
+ node.stop();
+ }
+}
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>
diff --git a/sandbox/travelsample/launchers/introducing-tours-launcher/build.xml b/sandbox/travelsample/launchers/introducing-tours-launcher/build.xml
new file mode 100644
index 0000000000..f81b0222ec
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-tours-launcher/build.xml
@@ -0,0 +1,32 @@
+<!--
+ * 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-tours-launcher" default="run">
+ <property environment="env"/>
+
+ <target name="run">
+ <java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher" fork="true">
+ <arg value="http://localhost:9990/node-config/ToursNode"/>
+ <classpath>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/launchers/introducing-trips-launcher/build.xml b/sandbox/travelsample/launchers/introducing-trips-launcher/build.xml
new file mode 100644
index 0000000000..7e9c5b66bf
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-trips-launcher/build.xml
@@ -0,0 +1,32 @@
+<!--
+ * 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-trips-launcher" default="run">
+ <property environment="env"/>
+
+ <target name="run">
+ <java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher" fork="true">
+ <arg value="http://localhost:9990/node-config/TripsNode"/>
+ <classpath>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/launchers/pom.xml b/sandbox/travelsample/launchers/pom.xml
index 73e4002ab2..e4acb21af7 100644
--- a/sandbox/travelsample/launchers/pom.xml
+++ b/sandbox/travelsample/launchers/pom.xml
@@ -47,6 +47,8 @@
<module>feed-logger-launcher</module>
<module>interaction-launcher</module>
<module>introducing-launcher</module>
+ <module>introducing-client-launcher</module>
+ <module>introducing-domain-launcher</module>
<module>jumpstart-launcher</module>
<module>fullapp-launcher</module>
<module>help-pages-launcher</module>