summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/travelsample')
-rw-r--r--sandbox/travelsample/build.xml1
-rw-r--r--sandbox/travelsample/distribution/pom.xml38
-rw-r--r--sandbox/travelsample/distribution/src/main/components/bin-modules.xml8
-rw-r--r--sandbox/travelsample/domainconfig/build.xml45
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/build.xml22
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/pom.xml79
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud.composite35
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-bespoketrip.composite36
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-coordination.composite36
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-creditcard.composite36
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-currency.composite36
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-packagedtrip.composite35
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-payment.composite36
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-shoppingcart.composite36
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-ui.composite33
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/domain.composite35
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace-distribution.xml41
-rw-r--r--sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace.xml41
-rw-r--r--sandbox/travelsample/domainconfig/introducing/build.xml22
-rw-r--r--sandbox/travelsample/domainconfig/introducing/pom.xml79
-rw-r--r--sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud.composite26
-rw-r--r--sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ClientNode.composite32
-rw-r--r--sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ToursNode.composite32
-rw-r--r--sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/TripsNode.composite32
-rw-r--r--sandbox/travelsample/domainconfig/introducing/src/main/resources/domain.composite26
-rw-r--r--sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace-distribution.xml30
-rw-r--r--sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace.xml30
-rw-r--r--sandbox/travelsample/domainconfig/pom.xml47
-rw-r--r--sandbox/travelsample/launchers/build.xml2
-rw-r--r--sandbox/travelsample/launchers/fullapp-domain/build.xml4
-rw-r--r--sandbox/travelsample/launchers/fullapp-domain/pom.xml107
-rw-r--r--sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainAPILauncher.java42
-rw-r--r--sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java18
-rw-r--r--sandbox/travelsample/launchers/introducing-client/pom.xml14
-rw-r--r--sandbox/travelsample/launchers/introducing-domain/build.xml25
-rw-r--r--sandbox/travelsample/launchers/introducing-domain/pom.xml12
-rw-r--r--sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainAPILauncher.java42
-rw-r--r--sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainLauncher.java30
-rw-r--r--sandbox/travelsample/launchers/introducing-tours/build.xml2
-rw-r--r--sandbox/travelsample/launchers/introducing-tours/pom.xml58
-rw-r--r--sandbox/travelsample/launchers/introducing-tours/src/main/java/scatours/IntroducingToursLauncher.java30
-rw-r--r--sandbox/travelsample/launchers/introducing-trips/build.xml2
-rw-r--r--sandbox/travelsample/launchers/introducing-trips/pom.xml58
-rw-r--r--sandbox/travelsample/launchers/introducing-trips/src/main/java/scatours/IntroducingTripsLauncher.java30
-rw-r--r--sandbox/travelsample/launchers/pom.xml2
-rw-r--r--sandbox/travelsample/pom.xml1
46 files changed, 1338 insertions, 126 deletions
diff --git a/sandbox/travelsample/build.xml b/sandbox/travelsample/build.xml
index 70a4dc0876..f74b4cb2a8 100644
--- a/sandbox/travelsample/build.xml
+++ b/sandbox/travelsample/build.xml
@@ -40,6 +40,7 @@
<target name="allsubdirs">
<ant dir="util" target="${target}"/> <!--needed by launchers-->
<ant dir="contributions" target="${target}"/> <!--needed by launchers-->
+ <ant dir="domainconfig" target="${target}"/> <!--needed by launchers-->
<ant dir="services" target="${target}"/> <!--needed by launchers-->
<ant dir="launchers" target="${target}"/> <!--needed by clients-->
<ant dir="clients" target="${target}"/>
diff --git a/sandbox/travelsample/distribution/pom.xml b/sandbox/travelsample/distribution/pom.xml
index 210fc426a9..fd35ffc986 100644
--- a/sandbox/travelsample/distribution/pom.xml
+++ b/sandbox/travelsample/distribution/pom.xml
@@ -398,6 +398,16 @@
</dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours-launcher-introducing-tours</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours-launcher-introducing-trips</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>scatours-launcher-jumpstart</artifactId>
<version>${pom.version}</version>
</dependency>
@@ -466,7 +476,16 @@
<artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
</dependency>
-
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours-domainconfig-fullapp</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours-domainconfig-introducing</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jms_1.1_spec</artifactId>
@@ -513,6 +532,23 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <delete dir="target/apache-tuscany-scatours-${version}/tuscany-scatours-${version}/domainconfig/META-INF"
+ includeemptydirs="true"/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/sandbox/travelsample/distribution/src/main/components/bin-modules.xml b/sandbox/travelsample/distribution/src/main/components/bin-modules.xml
index e50b056eb4..b08d7beab4 100644
--- a/sandbox/travelsample/distribution/src/main/components/bin-modules.xml
+++ b/sandbox/travelsample/distribution/src/main/components/bin-modules.xml
@@ -89,6 +89,14 @@
</includes>
<scope>runtime</scope>
</dependencySet>
+ <dependencySet>
+ <outputDirectory>domainconfig</outputDirectory>
+ <unpack>true</unpack>
+ <includes>
+ <include>org.apache.tuscany.sca:scatours-domainconfig-*</include>
+ </includes>
+ <scope>runtime</scope>
+ </dependencySet>
</dependencySets>
diff --git a/sandbox/travelsample/domainconfig/build.xml b/sandbox/travelsample/domainconfig/build.xml
new file mode 100644
index 0000000000..04219dd032
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/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-domainconfig" default="compile">
+
+ <target name="compile">
+ <antcall target="allsubdirs">
+ <param name="target" value="compile"/>
+ </antcall>
+ </target>
+
+ <target name="test">
+ <antcall target="allsubdirs">
+ <param name="target" value="test"/>
+ </antcall>
+ </target>
+
+ <target name="clean">
+ <antcall target="allsubdirs">
+ <param name="target" value="clean"/>
+ </antcall>
+ </target>
+
+ <target name="allsubdirs">
+ <ant dir="fullapp" target="${target}"/>
+ <ant dir="introducing" target="${target}"/>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/domainconfig/fullapp/build.xml b/sandbox/travelsample/domainconfig/fullapp/build.xml
new file mode 100644
index 0000000000..3fd52446fc
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/build.xml
@@ -0,0 +1,22 @@
+<!--
+ * 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-domainconfig-fullapp" default="compile">
+ <import file="../../antdefs.xml"/>
+</project>
diff --git a/sandbox/travelsample/domainconfig/fullapp/pom.xml b/sandbox/travelsample/domainconfig/fullapp/pom.xml
new file mode 100644
index 0000000000..94802269bb
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/pom.xml
@@ -0,0 +1,79 @@
+<?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>scatours</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent><version>1.0-SNAPSHOT</version>
+ <artifactId>scatours-domainconfig-fullapp</artifactId>
+ <name>Apache Tuscany SCA Tours Full App Domain Configuration</name>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <excludes>
+ <exclude>workspace-distribution.xml</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <configuration>
+ <tasks>
+ <mkdir dir="target/jar-classes/fullapp"/>
+ <copy todir="target/jar-classes/fullapp">
+ <fileset dir="src/main/resources">
+ <exclude name="workspace*.xml"/>
+ </fileset>
+ </copy>
+ <copy todir="target/jar-classes/fullapp">
+ <fileset dir="src/main/resources">
+ <include name="workspace-distribution.xml"/>
+ </fileset>
+ <globmapper from="workspace-distribution.xml" to="workspace.xml"/>
+ </copy>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <classesDirectory>target/jar-classes</classesDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud.composite
new file mode 100644
index 0000000000..284376538a
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud.composite
@@ -0,0 +1,35 @@
+<?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 name="cloud.composite"
+ 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"
+ xmlns:ns2="http://tuscany.apache.org/cloud">
+
+ <include name="ns2:ui" uri="http://tuscany.apache.org/cloud" />
+ <include name="ns2:coordination" uri="http://tuscany.apache.org/cloud" />
+ <include name="ns2:packagedtrip" uri="http://tuscany.apache.org/cloud" />
+ <include name="ns2:bespoketrip" uri="http://tuscany.apache.org/cloud" />
+ <include name="ns2:currency" uri="http://tuscany.apache.org/cloud" />
+ <include name="ns2:shoppingcart" uri="http://tuscany.apache.org/cloud" />
+ <include name="ns2:payment" uri="http://tuscany.apache.org/cloud" />
+ <include name="ns2:creditcard" uri="http://tuscany.apache.org/cloud" />
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-bespoketrip.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-bespoketrip.composite
new file mode 100644
index 0000000000..b6d9d51cbc
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-bespoketrip.composite
@@ -0,0 +1,36 @@
+<?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:t="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://tuscany.apache.org/cloud"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:s="http://tuscanyscatours.com/"
+ name="bespoketrip">
+
+ <component name="bespoketrip">
+ <t:implementation.node uri="fullapp-bespoketrip" composite="s:fullapp-bespoketrip"/>
+ <service name="Node">
+ <binding.sca uri="http://localhost:8086"/>
+ <binding.ws uri="http://localhost:8086"/>
+ <tuscany:binding.jsonrpc uri="http://localhost:8086"/>
+ </service>
+ </component>
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-coordination.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-coordination.composite
new file mode 100644
index 0000000000..b42457154f
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-coordination.composite
@@ -0,0 +1,36 @@
+<?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:t="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://tuscany.apache.org/cloud"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:s="http://tuscanyscatours.com/"
+ name="coordination">
+
+ <component name="coordination">
+ <t:implementation.node uri="fullapp-coordination" composite="s:fullapp-coordination"/>
+ <service name="Node">
+ <binding.sca uri="http://localhost:8084"/>
+ <binding.ws uri="http://localhost:8084"/>
+ <tuscany:binding.jsonrpc uri="http://localhost:8084"/>
+ </service>
+ </component>
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-creditcard.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-creditcard.composite
new file mode 100644
index 0000000000..5c66ff2796
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-creditcard.composite
@@ -0,0 +1,36 @@
+<?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:t="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://tuscany.apache.org/cloud"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:s="http://tuscanyscatours.com/"
+ name="creditcard">
+
+ <component name="creditcard">
+ <t:implementation.node uri="fullapp-creditcard" composite="s:creditcard"/>
+ <service name="Node">
+ <binding.sca uri="http://localhost:8082"/>
+ <binding.ws uri="http://localhost:8082"/>
+ <tuscany:binding.jsonrpc uri="http://localhost:8082"/>
+ </service>
+ </component>
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-currency.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-currency.composite
new file mode 100644
index 0000000000..185112122c
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-currency.composite
@@ -0,0 +1,36 @@
+<?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:t="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://tuscany.apache.org/cloud"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:s="http://tuscanyscatours.com/"
+ name="currency">
+
+ <component name="currency">
+ <t:implementation.node uri="fullapp-currency" composite="s:fullapp-currency"/>
+ <service name="Node">
+ <binding.sca uri="http://localhost:8083"/>
+ <binding.ws uri="http://localhost:8083"/>
+ <tuscany:binding.jsonrpc uri="http://localhost:8083"/>
+ </service>
+ </component>
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-packagedtrip.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-packagedtrip.composite
new file mode 100644
index 0000000000..323700b4a0
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-packagedtrip.composite
@@ -0,0 +1,35 @@
+<?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:t="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://tuscany.apache.org/cloud"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:s="http://tuscanyscatours.com/"
+ name="packagedtrip">
+
+ <component name="packagedtrip">
+ <t:implementation.node uri="fullapp-packagedtrip" composite="s:fullapp-packagedtrip"/>
+ <service name="Node">
+ <binding.sca uri="http://localhost:8085"/>
+ <tuscany:binding.jsonrpc uri="http://localhost:8085"/>
+ </service>
+ </component>
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-payment.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-payment.composite
new file mode 100644
index 0000000000..b27b57fad5
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-payment.composite
@@ -0,0 +1,36 @@
+<?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:t="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://tuscany.apache.org/cloud"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:s="http://tuscanyscatours.com/"
+ name="payment">
+
+ <component name="payment">
+ <t:implementation.node uri="fullapp-payment" composite="s:payment"/>
+ <service name="Node">
+ <binding.sca uri="http://localhost:8081"/>
+ <binding.ws uri="http://localhost:8081"/>
+ <tuscany:binding.jsonrpc uri="http://localhost:8081"/>
+ </service>
+ </component>
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-shoppingcart.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-shoppingcart.composite
new file mode 100644
index 0000000000..7bec251965
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-shoppingcart.composite
@@ -0,0 +1,36 @@
+<?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:t="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://tuscany.apache.org/cloud"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:s="http://tuscanyscatours.com/"
+ name="shoppingcart">
+
+ <component name="shoppingcart">
+ <t:implementation.node uri="fullapp-shoppingcart" composite="s:fullapp-shoppingcart"/>
+ <service name="Node">
+ <binding.sca uri="http://localhost:8087"/>
+ <binding.ws uri="http://localhost:8087"/>
+ <tuscany:binding.jsonrpc uri="http://localhost:8087"/>
+ </service>
+ </component>
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-ui.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-ui.composite
new file mode 100644
index 0000000000..e86bef1c56
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-ui.composite
@@ -0,0 +1,33 @@
+<?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:t="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://tuscany.apache.org/cloud"
+ xmlns:s="http://tuscanyscatours.com/"
+ name="ui">
+
+ <component name="ui">
+ <t:implementation.node uri="fullapp-ui" composite="s:fullapp-ui"/>
+ <service name="Node">
+ <binding.sca uri="http://localhost:8080"/>
+ </service>
+ </component>
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/domain.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/domain.composite
new file mode 100644
index 0000000000..b26f71aa94
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/domain.composite
@@ -0,0 +1,35 @@
+<?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 name="domain.composite"
+ 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"
+ xmlns:ns2="http://tuscanyscatours.com/">
+
+ <include name="ns2:creditcard" uri="fullapp-creditcard" />
+ <include name="ns2:payment" uri="fullapp-payment" />
+ <include name="ns2:fullapp-shoppingcart" uri="fullapp-shoppingcart" />
+ <include name="ns2:fullapp-currency" uri="fullapp-currency" />
+ <include name="ns2:fullapp-packagedtrip" uri="fullapp-packagedtrip" />
+ <include name="ns2:fullapp-bespoketrip" uri="fullapp-bespoketrip" />
+ <include name="ns2:fullapp-coordination" uri="fullapp-coordination" />
+ <include name="ns2:fullapp-ui" uri="fullapp-ui" />
+
+</composite>
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace-distribution.xml b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace-distribution.xml
new file mode 100644
index 0000000000..948308ed8e
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace-distribution.xml
@@ -0,0 +1,41 @@
+<?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.
+-->
+<workspace xmlns="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:ns1="http://tuscany.apache.org/xmlns/sca/1.0">
+ <contribution location="file:../contributions/scatours-contribution-common.jar" uri="common"/>
+ <contribution location="file:../contributions/scatours-contribution-currency.jar" uri="currency"/>
+ <contribution location="file:../contributions/scatours-contribution-hotel.jar" uri="hotel"/>
+ <contribution location="file:../contributions/scatours-contribution-flight.jar" uri="flight"/>
+ <contribution location="file:../contributions/scatours-contribution-car.jar" uri="car"/>
+ <contribution location="file:../contributions/scatours-contribution-trip.jar" uri="trip"/>
+ <contribution location="file:../contributions/scatours-contribution-tripbooking.jar" uri="tripbooking"/>
+ <contribution location="file:../contributions/scatours-contribution-travelcatalog.jar" uri="travelcatalog"/>
+ <contribution location="file:../contributions/scatours-contribution-payment-java.jar" uri="fullapp-payment"/>
+ <contribution location="file:../contributions/scatours-contribution-creditcard-payment-jaxb.jar" uri="fullapp-creditcard"/>
+ <contribution location="file:../contributions/scatours-contribution-shoppingcart.jar" uri="shoppingcart"/>
+ <contribution location="file:../contributions/scatours-contribution-scatours.jar" uri="scatours"/>
+ <contribution location="file:../contributions/scatours-contribution-fullapp-ui.jar" uri="fullapp-ui"/>
+ <contribution location="file:../contributions/scatours-contribution-fullapp-coordination.jar" uri="fullapp-coordination"/>
+ <contribution location="file:../contributions/scatours-contribution-fullapp-currency.jar" uri="fullapp-currency"/>
+ <contribution location="file:../contributions/scatours-contribution-fullapp-packagedtrip.jar" uri="fullapp-packagedtrip"/>
+ <contribution location="file:../contributions/scatours-contribution-fullapp-bespoketrip.jar" uri="fullapp-bespoketrip"/>
+ <contribution location="file:../contributions/scatours-contribution-fullapp-shoppingcart.jar" uri="fullapp-shoppingcart"/>
+ <contribution location="file:../domainconfig/fullapp/cloud" uri="http://tuscany.apache.org/cloud"/>
+</workspace> \ No newline at end of file
diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace.xml b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace.xml
new file mode 100644
index 0000000000..95eca56958
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace.xml
@@ -0,0 +1,41 @@
+<?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.
+-->
+<workspace xmlns="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:ns1="http://tuscany.apache.org/xmlns/sca/1.0">
+ <contribution location="file:../../contributions/common/target/scatours-contribution-common.jar" uri="common"/>
+ <contribution location="file:../../contributions/currency/target/scatours-contribution-currency.jar" uri="currency"/>
+ <contribution location="file:../../contributions/hotel/target/scatours-contribution-hotel.jar" uri="hotel"/>
+ <contribution location="file:../../contributions/flight/target/scatours-contribution-flight.jar" uri="flight"/>
+ <contribution location="file:../../contributions/car/target/scatours-contribution-car.jar" uri="car"/>
+ <contribution location="file:../../contributions/trip/target/scatours-contribution-trip.jar" uri="trip"/>
+ <contribution location="file:../../contributions/tripbooking/target/scatours-contribution-tripbooking.jar" uri="tripbooking"/>
+ <contribution location="file:../../contributions/travelcatalog/target/scatours-contribution-travelcatalog.jar" uri="travelcatalog"/>
+ <contribution location="file:../../contributions/payment-java/target/scatours-contribution-payment-java.jar" uri="fullapp-payment"/>
+ <contribution location="file:../../contributions/creditcard-payment-jaxb/target/scatours-contribution-creditcard-payment-jaxb.jar" uri="fullapp-creditcard"/>
+ <contribution location="file:../../contributions/shoppingcart/target/scatours-contribution-shoppingcart.jar" uri="shoppingcart"/>
+ <contribution location="file:../../contributions/scatours/target/scatours-contribution-scatours.jar" uri="scatours"/>
+ <contribution location="file:../../contributions/fullapp-ui/target/scatours-contribution-fullapp-ui.jar" uri="fullapp-ui"/>
+ <contribution location="file:../../contributions/fullapp-coordination/target/scatours-contribution-fullapp-coordination.jar" uri="fullapp-coordination"/>
+ <contribution location="file:../../contributions/fullapp-currency/target/scatours-contribution-fullapp-currency.jar" uri="fullapp-currency"/>
+ <contribution location="file:../../contributions/fullapp-packagedtrip/target/scatours-contribution-fullapp-packagedtrip.jar" uri="fullapp-packagedtrip"/>
+ <contribution location="file:../../contributions/fullapp-bespoketrip/target/scatours-contribution-fullapp-bespoketrip.jar" uri="fullapp-bespoketrip"/>
+ <contribution location="file:../../contributions/fullapp-shoppingcart/target/scatours-contribution-fullapp-shoppingcart.jar" uri="fullapp-shoppingcart"/>
+ <contribution location="file:../../domainconfig/fullapp/target/classes/cloud" uri="http://tuscany.apache.org/cloud"/>
+</workspace> \ No newline at end of file
diff --git a/sandbox/travelsample/domainconfig/introducing/build.xml b/sandbox/travelsample/domainconfig/introducing/build.xml
new file mode 100644
index 0000000000..5ce51edcce
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/introducing/build.xml
@@ -0,0 +1,22 @@
+<!--
+ * 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-domainconfig-introducing" default="compile">
+ <import file="../../antdefs.xml"/>
+</project>
diff --git a/sandbox/travelsample/domainconfig/introducing/pom.xml b/sandbox/travelsample/domainconfig/introducing/pom.xml
new file mode 100644
index 0000000000..9cc529cd90
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/introducing/pom.xml
@@ -0,0 +1,79 @@
+<?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>scatours</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent><version>1.0-SNAPSHOT</version>
+ <artifactId>scatours-domainconfig-introducing</artifactId>
+ <name>Apache Tuscany SCA Tours Introducing Domain Configuration</name>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <excludes>
+ <exclude>workspace-distribution.xml</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <configuration>
+ <tasks>
+ <mkdir dir="target/jar-classes/introducing"/>
+ <copy todir="target/jar-classes/introducing">
+ <fileset dir="src/main/resources">
+ <exclude name="workspace*.xml"/>
+ </fileset>
+ </copy>
+ <copy todir="target/jar-classes/introducing">
+ <fileset dir="src/main/resources">
+ <include name="workspace-distribution.xml"/>
+ </fileset>
+ <globmapper from="workspace-distribution.xml" to="workspace.xml"/>
+ </copy>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <classesDirectory>target/jar-classes</classesDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud.composite
new file mode 100644
index 0000000000..5d400e1be8
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud.composite
@@ -0,0 +1,26 @@
+<?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 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/domainconfig/introducing/src/main/resources/cloud/ClientNode.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ClientNode.composite
new file mode 100644
index 0000000000..adf8f0e9cb
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ClientNode.composite
@@ -0,0 +1,32 @@
+<?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: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/domainconfig/introducing/src/main/resources/cloud/ToursNode.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ToursNode.composite
new file mode 100644
index 0000000000..6e8f7fadb6
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ToursNode.composite
@@ -0,0 +1,32 @@
+<?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: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/domainconfig/introducing/src/main/resources/cloud/TripsNode.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/TripsNode.composite
new file mode 100644
index 0000000000..9e4b454941
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/TripsNode.composite
@@ -0,0 +1,32 @@
+<?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: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/domainconfig/introducing/src/main/resources/domain.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/domain.composite
new file mode 100644
index 0000000000..ec0f71484b
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/domain.composite
@@ -0,0 +1,26 @@
+<?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 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/domainconfig/introducing/src/main/resources/workspace-distribution.xml b/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace-distribution.xml
new file mode 100644
index 0000000000..5c058ee325
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace-distribution.xml
@@ -0,0 +1,30 @@
+<?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.
+-->
+<workspace xmlns="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:ns1="http://tuscany.apache.org/xmlns/sca/1.0">
+ <contribution location="file:../domainconfig/introducing/cloud"
+ uri="http://tuscany.apache.org/cloud"/>
+ <contribution location="file:../contributions/scatours-contribution-introducing-tours.jar"
+ uri="introducing-tours"/>
+ <contribution location="file:../contributions/scatours-contribution-introducing-trips.jar"
+ uri="introducing-trips"/>
+ <contribution location="file:../contributions/scatours-contribution-introducing-client.jar"
+ uri="introducing-client"/>
+</workspace>
diff --git a/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace.xml b/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace.xml
new file mode 100644
index 0000000000..59468135c1
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace.xml
@@ -0,0 +1,30 @@
+<?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.
+-->
+<workspace xmlns="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:ns1="http://tuscany.apache.org/xmlns/sca/1.0">
+ <contribution location="file:../../domainconfig/introducing/target/classes/cloud"
+ uri="http://tuscany.apache.org/cloud"/>
+ <contribution location="file:../../contributions/introducing-tours/target/scatours-contribution-introducing-tours.jar"
+ uri="introducing-tours"/>
+ <contribution location="file:../../contributions/introducing-trips/target/scatours-contribution-introducing-trips.jar"
+ uri="introducing-trips"/>
+ <contribution location="file:../../contributions/introducing-client/target/scatours-contribution-introducing-client.jar"
+ uri="introducing-client"/>
+</workspace>
diff --git a/sandbox/travelsample/domainconfig/pom.xml b/sandbox/travelsample/domainconfig/pom.xml
new file mode 100644
index 0000000000..41f75d3068
--- /dev/null
+++ b/sandbox/travelsample/domainconfig/pom.xml
@@ -0,0 +1,47 @@
+<?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>scatours</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <version>1.0-SNAPSHOT</version>
+ <artifactId>scatours-domainconfig</artifactId>
+ <packaging>pom</packaging>
+ <name>Apache Tuscany SCA Tours Domain Configurations</name>
+
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>fullapp</module>
+ <module>introducing</module>
+ </modules>
+ </profile>
+
+ </profiles>
+
+</project>
diff --git a/sandbox/travelsample/launchers/build.xml b/sandbox/travelsample/launchers/build.xml
index e396700052..fd11d4c28a 100644
--- a/sandbox/travelsample/launchers/build.xml
+++ b/sandbox/travelsample/launchers/build.xml
@@ -55,6 +55,8 @@
<ant dir="introducing" target="${target}"/>
<ant dir="introducing-client" target="${target}"/>
<ant dir="introducing-domain" target="${target}"/>
+ <ant dir="introducing-tours" target="${target}"/>
+ <ant dir="introducing-trips" target="${target}"/>
<ant dir="jumpstart" target="${target}"/>
<ant dir="notification-corba" target="${target}"/>
<ant dir="notification-ejb" target="${target}"/>
diff --git a/sandbox/travelsample/launchers/fullapp-domain/build.xml b/sandbox/travelsample/launchers/fullapp-domain/build.xml
index 1befc6413f..d294dc664a 100644
--- a/sandbox/travelsample/launchers/fullapp-domain/build.xml
+++ b/sandbox/travelsample/launchers/fullapp-domain/build.xml
@@ -26,7 +26,7 @@
manager API. Note that the classpath only includes the node launcher
jar which will bootstrap the rest of the Tuscany runtime. -->
<target name="run">
- <java classname="scatours.FullAppDomainLauncher" fork="true">
+ <java classname="scatours.FullAppDomainAPILauncher" fork="true">
<classpath>
<pathelement location="target/${ant.project.name}.jar"/>
<fileset dir="${env.TUSCANY_HOME}/modules">
@@ -48,7 +48,7 @@
<include name="tuscany-node-launcher-*.jar"/>
</fileset>
</classpath>
- <arg value=".\target\classes"/>
+ <arg value="./target/classes"/>
</java>
</target>
</project>
diff --git a/sandbox/travelsample/launchers/fullapp-domain/pom.xml b/sandbox/travelsample/launchers/fullapp-domain/pom.xml
index c0dcf5e00c..ae69ddd348 100644
--- a/sandbox/travelsample/launchers/fullapp-domain/pom.xml
+++ b/sandbox/travelsample/launchers/fullapp-domain/pom.xml
@@ -31,113 +31,12 @@
<dependencies>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-assembly</artifactId>
- <version>${tuscany.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${tuscany.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-assembly-xml</artifactId>
- <version>${tuscany.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-node-api</artifactId>
- <version>${tuscany.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-node-launcher</artifactId>
<version>${tuscany.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-domain-manager</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-implementation-node-runtime</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-implementation-java</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-implementation-java-runtime</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-implementation-widget-runtime-tuscany</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-atom-abdera</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-jsonrpc-js</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-jsonrpc-runtime</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-http-runtime</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-ws-axis2</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-sca-axis2</artifactId>
- <version>${tuscany.version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
<artifactId>scatours-contribution-fullapp-bespoketrip</artifactId>
<version>${pom.version}</version>
<scope>provided</scope>
@@ -202,7 +101,11 @@
<version>2.2</version>
<configuration>
<archive>
- <manifestFile>META-INF/MANIFEST.MF</manifestFile>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>scatours.FullAppDomainLauncher</mainClass>
+ </manifest>
</archive>
</configuration>
</plugin>
diff --git a/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainAPILauncher.java b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainAPILauncher.java
new file mode 100644
index 0000000000..4f8d564eac
--- /dev/null
+++ b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainAPILauncher.java
@@ -0,0 +1,42 @@
+/*
+ * 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 java.io.IOException;
+import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher;
+
+public class FullAppDomainAPILauncher {
+
+ public static void main(String[] args) throws Exception {
+ DomainManagerLauncher dml = DomainManagerLauncher.newInstance();
+ Object dm = dml.createDomainManager("../../domainconfig/fullapp/target/classes");
+ dm.getClass().getMethod("start").invoke(dm);
+
+ System.out.println("Point your browser at - http://localhost:9990/ui/home/ ");
+ System.out.println("Domain started - Press enter to shutdown.");
+
+ try {
+ System.in.read();
+ } catch (IOException e) {
+ }
+
+ dm.getClass().getMethod("stop").invoke(dm);
+ }
+}
diff --git a/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java
index 21b0ae4cb3..599ca75e24 100644
--- a/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java
+++ b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java
@@ -19,26 +19,12 @@
package scatours;
-import java.io.IOException;
-import java.util.logging.Level;
-
import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher;
public class FullAppDomainLauncher {
public static void main(String[] args) throws Exception {
- DomainManagerLauncher dml = DomainManagerLauncher.newInstance();
- Object dm = dml.createDomainManager("./target/classes");
- dm.getClass().getMethod("start").invoke(dm);
-
- System.out.println("Point your browser at - http://localhost:9990/ui/home/ ");
- System.out.println("Domain started - Press enter to shutdown.");
-
- try {
- System.in.read();
- } catch (IOException e) {
- }
-
- dm.getClass().getMethod("stop").invoke(dm);
+ String[] dmArgs = {"../domainconfig/fullapp"};
+ DomainManagerLauncher.main(dmArgs);
}
}
diff --git a/sandbox/travelsample/launchers/introducing-client/pom.xml b/sandbox/travelsample/launchers/introducing-client/pom.xml
index 3d13092101..f348ea9456 100644
--- a/sandbox/travelsample/launchers/introducing-client/pom.xml
+++ b/sandbox/travelsample/launchers/introducing-client/pom.xml
@@ -50,6 +50,20 @@
</dependency>
<dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-sca-axis2</artifactId>
+ <version>${tuscany.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-host-jetty</artifactId>
+ <version>${tuscany.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
diff --git a/sandbox/travelsample/launchers/introducing-domain/build.xml b/sandbox/travelsample/launchers/introducing-domain/build.xml
index 67d5fab24c..700515a791 100644
--- a/sandbox/travelsample/launchers/introducing-domain/build.xml
+++ b/sandbox/travelsample/launchers/introducing-domain/build.xml
@@ -20,14 +20,35 @@
<project name="scatours-launcher-introducing-domain" default="run">
<import file="../../antdefs.xml"/>
- <target name="run" depends="compile">
+ <!-- In Tuscany 1.5.1 the command-line launcher for the domain manager
+ is hard wired to use the current directory for the domain configuration,
+ so we use a custom launcher to override this setting using the domain
+ manager API. Note that the classpath only includes the node launcher
+ jar which will bootstrap the rest of the Tuscany runtime. -->
+ <target name="run">
+ <java classname="scatours.IntroducingDomainAPILauncher" fork="true">
+ <classpath>
+ <pathelement location="target/${ant.project.name}.jar"/>
+ <fileset dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-node-launcher-*.jar"/>
+ </fileset>
+ </classpath>
+ </java>
+ </target>
+
+ <!-- The "run-command" target runs the DomainManagerLauncher class
+ directly (as if it had been invoked from a command line) and passes
+ in the domain configuration directory as a command-line argument.
+ This only works for Tuscany versions greater than 1.5.1. -->
+ <target name="run-command">
<java classname="org.apache.tuscany.sca.node.launcher.DomainManagerLauncher"
- dir="target/classes" fork="true">
+ dir="." fork="true">
<classpath>
<fileset dir="${env.TUSCANY_HOME}/modules">
<include name="tuscany-node-launcher-*.jar"/>
</fileset>
</classpath>
+ <arg value="./target/classes"/>
</java>
</target>
</project>
diff --git a/sandbox/travelsample/launchers/introducing-domain/pom.xml b/sandbox/travelsample/launchers/introducing-domain/pom.xml
index 1c2f21bac7..2a9f3e53fb 100644
--- a/sandbox/travelsample/launchers/introducing-domain/pom.xml
+++ b/sandbox/travelsample/launchers/introducing-domain/pom.xml
@@ -31,6 +31,12 @@
<dependencies>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-launcher</artifactId>
+ <version>${tuscany.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>scatours-contribution-introducing-tours</artifactId>
<version>${pom.version}</version>
<scope>provided</scope>
@@ -60,7 +66,11 @@
<version>2.2</version>
<configuration>
<archive>
- <manifestFile>META-INF/MANIFEST.MF</manifestFile>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>scatours.IntroducingDomainLauncher</mainClass>
+ </manifest>
</archive>
</configuration>
</plugin>
diff --git a/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainAPILauncher.java b/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainAPILauncher.java
new file mode 100644
index 0000000000..06c5597327
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainAPILauncher.java
@@ -0,0 +1,42 @@
+/*
+ * 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 java.io.IOException;
+import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher;
+
+public class IntroducingDomainAPILauncher {
+
+ public static void main(String[] args) throws Exception {
+ DomainManagerLauncher dml = DomainManagerLauncher.newInstance();
+ Object dm = dml.createDomainManager("../../domainconfig/introducing/target/classes");
+ dm.getClass().getMethod("start").invoke(dm);
+
+ System.out.println("Point your browser at - http://localhost:9990/ui/home/ ");
+ System.out.println("Domain started - Press enter to shutdown.");
+
+ try {
+ System.in.read();
+ } catch (IOException e) {
+ }
+
+ dm.getClass().getMethod("stop").invoke(dm);
+ }
+}
diff --git a/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainLauncher.java b/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainLauncher.java
new file mode 100644
index 0000000000..b9f7fe040f
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainLauncher.java
@@ -0,0 +1,30 @@
+/*
+ * 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.launcher.DomainManagerLauncher;
+
+public class IntroducingDomainLauncher {
+
+ public static void main(String[] args) throws Exception {
+ String[] dmArgs = {"../domainconfig/introducing"};
+ DomainManagerLauncher.main(dmArgs);
+ }
+}
diff --git a/sandbox/travelsample/launchers/introducing-tours/build.xml b/sandbox/travelsample/launchers/introducing-tours/build.xml
index 12482cf7b8..3df9db154f 100644
--- a/sandbox/travelsample/launchers/introducing-tours/build.xml
+++ b/sandbox/travelsample/launchers/introducing-tours/build.xml
@@ -18,7 +18,7 @@
-->
<project name="scatours-launcher-introducing-tours" default="run">
- <property environment="env"/>
+ <import file="../../antdefs.xml"/>
<target name="run">
<java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher" fork="true">
diff --git a/sandbox/travelsample/launchers/introducing-tours/pom.xml b/sandbox/travelsample/launchers/introducing-tours/pom.xml
new file mode 100644
index 0000000000..0391994557
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-tours/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>scatours</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent><version>1.0-SNAPSHOT</version>
+ <artifactId>scatours-launcher-introducing-tours</artifactId>
+ <name>Apache Tuscany SCA Tours Introducing Tours Launcher</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-launcher</artifactId>
+ <version>${tuscany.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>scatours.IntroducingToursLauncher</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/sandbox/travelsample/launchers/introducing-tours/src/main/java/scatours/IntroducingToursLauncher.java b/sandbox/travelsample/launchers/introducing-tours/src/main/java/scatours/IntroducingToursLauncher.java
new file mode 100644
index 0000000000..7a1dd79890
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-tours/src/main/java/scatours/IntroducingToursLauncher.java
@@ -0,0 +1,30 @@
+/*
+ * 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.launcher.NodeLauncher;
+
+public class IntroducingToursLauncher {
+
+ public static void main(String[] args) throws Exception {
+ String[] dmArgs = {"http://localhost:9990/node-config/ToursNode"};
+ NodeLauncher.main(dmArgs);
+ }
+}
diff --git a/sandbox/travelsample/launchers/introducing-trips/build.xml b/sandbox/travelsample/launchers/introducing-trips/build.xml
index 463831c948..ce9973e395 100644
--- a/sandbox/travelsample/launchers/introducing-trips/build.xml
+++ b/sandbox/travelsample/launchers/introducing-trips/build.xml
@@ -18,7 +18,7 @@
-->
<project name="scatours-launcher-introducing-trips" default="run">
- <property environment="env"/>
+ <import file="../../antdefs.xml"/>
<target name="run">
<java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher" fork="true">
diff --git a/sandbox/travelsample/launchers/introducing-trips/pom.xml b/sandbox/travelsample/launchers/introducing-trips/pom.xml
new file mode 100644
index 0000000000..1ef9d06774
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-trips/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>scatours</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent><version>1.0-SNAPSHOT</version>
+ <artifactId>scatours-launcher-introducing-trips</artifactId>
+ <name>Apache Tuscany SCA Tours Introducing Trips Launcher</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-launcher</artifactId>
+ <version>${tuscany.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>scatours.IntroducingTripsLauncher</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/sandbox/travelsample/launchers/introducing-trips/src/main/java/scatours/IntroducingTripsLauncher.java b/sandbox/travelsample/launchers/introducing-trips/src/main/java/scatours/IntroducingTripsLauncher.java
new file mode 100644
index 0000000000..781949940c
--- /dev/null
+++ b/sandbox/travelsample/launchers/introducing-trips/src/main/java/scatours/IntroducingTripsLauncher.java
@@ -0,0 +1,30 @@
+/*
+ * 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.launcher.NodeLauncher;
+
+public class IntroducingTripsLauncher {
+
+ public static void main(String[] args) throws Exception {
+ String[] dmArgs = {"http://localhost:9990/node-config/TripsNode"};
+ NodeLauncher.main(dmArgs);
+ }
+}
diff --git a/sandbox/travelsample/launchers/pom.xml b/sandbox/travelsample/launchers/pom.xml
index 40ad7a1696..3d8738dc86 100644
--- a/sandbox/travelsample/launchers/pom.xml
+++ b/sandbox/travelsample/launchers/pom.xml
@@ -50,6 +50,8 @@
<module>introducing</module>
<module>introducing-client</module>
<module>introducing-domain</module>
+ <module>introducing-tours</module>
+ <module>introducing-trips</module>
<module>jumpstart</module>
<module>fullapp</module>
<module>fullapp-domain</module>
diff --git a/sandbox/travelsample/pom.xml b/sandbox/travelsample/pom.xml
index 3c72711f20..bfb2eb83df 100644
--- a/sandbox/travelsample/pom.xml
+++ b/sandbox/travelsample/pom.xml
@@ -93,6 +93,7 @@
<modules>
<module>util</module>
<module>contributions</module>
+ <module>domainconfig</module>
<module>launchers</module>
<module>services</module>
<module>clients</module>