summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/chapter-05
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-02-08 10:34:50 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-02-08 10:34:50 +0000
commiteb06796859bc8746cb3f25e065d3211fdadf2d6b (patch)
treef1825072a06bd8da1119a52669a6bd82f82737f2 /sandbox/travelsample/chapter-05
parenta1000cfafed375d9e87d9f97a0d9347be806b977 (diff)
re-org the modules
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@742040 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sandbox/travelsample/chapter-05/node/build.xml (renamed from sandbox/travelsample/node/build.xml)6
-rw-r--r--sandbox/travelsample/chapter-05/node/pom.xml (renamed from sandbox/travelsample/node/pom.xml)4
-rw-r--r--sandbox/travelsample/chapter-05/node/src/scatours/LaunchNode.java66
-rw-r--r--sandbox/travelsample/chapter-05/pom.xml46
-rw-r--r--sandbox/travelsample/chapter-05/ui-contribution/META-INF/sca-contribution.xml (renamed from sandbox/travelsample/ui-contribution/META-INF/sca-contribution.xml)0
-rw-r--r--sandbox/travelsample/chapter-05/ui-contribution/build.xml (renamed from sandbox/travelsample/ui-contribution/build.xml)6
-rw-r--r--sandbox/travelsample/chapter-05/ui-contribution/pom.xml (renamed from sandbox/travelsample/ui-contribution/pom.xml)4
-rw-r--r--sandbox/travelsample/chapter-05/ui-contribution/scatours.composite (renamed from sandbox/travelsample/ui-contribution/scatours.composite)4
-rw-r--r--sandbox/travelsample/chapter-05/ui-contribution/scatours.html (renamed from sandbox/travelsample/ui-contribution/scatours.html)0
-rw-r--r--sandbox/travelsample/chapter-05/ui-contribution/scatours.odg (renamed from sandbox/travelsample/ui-contribution/scatours.odg)bin11477 -> 11477 bytes
-rw-r--r--sandbox/travelsample/chapter-05/ui-contribution/scatours.png (renamed from sandbox/travelsample/ui-contribution/scatours.png)bin11061 -> 11061 bytes
-rw-r--r--sandbox/travelsample/chapter-05/ui-contribution/style.css (renamed from sandbox/travelsample/ui-contribution/style.css)0
12 files changed, 124 insertions, 12 deletions
diff --git a/sandbox/travelsample/node/build.xml b/sandbox/travelsample/chapter-05/node/build.xml
index ff93d7a224..a70be4e664 100644
--- a/sandbox/travelsample/node/build.xml
+++ b/sandbox/travelsample/chapter-05/node/build.xml
@@ -17,7 +17,7 @@
* under the License.
-->
-<project name="scatours-node" default="compile">
+<project name="scatours-chapter-05-node" default="compile">
<target name="compile">
<mkdir dir="target/classes"/>
@@ -31,7 +31,7 @@
<copy todir="target/classes">
<fileset dir="." excludes="**/*.java, pom.xml, build.xml, target"/>
</copy>
- <jar destfile="target/scatours-node.jar" basedir="target/classes">
+ <jar destfile="target/scatours-chapter-05-node.jar" basedir="target/classes">
<manifest>
<attribute name="Main-Class" value="launch.LaunchTutorialAdmin"/>
</manifest>
@@ -43,7 +43,7 @@
<target name="run">
<java classname="launch.LaunchTutorialAdmin" fork="true">
<classpath>
- <pathelement location="target/scatours-node.jar"/>
+ <pathelement location="target/scatours-chapter-05-node.jar"/>
<fileset refid="tuscany.jars"/>
<fileset refid="3rdparty.jars"/>
</classpath>
diff --git a/sandbox/travelsample/node/pom.xml b/sandbox/travelsample/chapter-05/node/pom.xml
index 77f8073b0b..d42e8b2fa6 100644
--- a/sandbox/travelsample/node/pom.xml
+++ b/sandbox/travelsample/chapter-05/node/pom.xml
@@ -25,8 +25,8 @@
<version>1.5-SNAPSHOT</version>
<!--relativePath>../../pom.xml</relativePath-->
</parent>
- <artifactId>scatours-node</artifactId>
- <name>Apache Tuscany SCA Tours Node</name>
+ <artifactId>scatours-chapter-05-node</artifactId>
+ <name>Apache Tuscany SCA Tours Chapter 05 Node</name>
<dependencies>
<dependency>
diff --git a/sandbox/travelsample/chapter-05/node/src/scatours/LaunchNode.java b/sandbox/travelsample/chapter-05/node/src/scatours/LaunchNode.java
new file mode 100644
index 0000000000..777963c13e
--- /dev/null
+++ b/sandbox/travelsample/chapter-05/node/src/scatours/LaunchNode.java
@@ -0,0 +1,66 @@
+/*
+ * 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.SCAContribution;
+import org.apache.tuscany.sca.node.SCANode;
+import org.apache.tuscany.sca.node.SCANodeFactory;
+import org.apache.tuscany.sca.node.launcher.NodeLauncher;
+
+public class LaunchNode {
+ public static void main(String[] args) throws Exception {
+ LaunchNode.launchFromFileSystemDir();
+ }
+
+ // OK for development but you must launch the node from this module
+ public static void launchFromFileSystemDir(){
+ SCANode node = null;
+
+ try {
+ node = SCANodeFactory.newInstance().createSCANode("scatours.composite",
+ new SCAContribution("common", "../../shared-contributions/common-contribution/target/classes"),
+ new SCAContribution("currency", "../../shared-contributions/currency-contribution/target/classes"),
+ new SCAContribution("hotel", "../../shared-contributions/hotel-contribution/target/classes"),
+ new SCAContribution("flight", "../../shared-contributions/flight-contribution/target/classes"),
+ new SCAContribution("car", "../../shared-contributions/car-contribution/target/classes"),
+ new SCAContribution("trip", "../../shared-contributions/trip-contribution/target/classes"),
+ new SCAContribution("tripbooking", "../../shared-contributions/tripbooking-contribution/target/classes"),
+ new SCAContribution("travelcatalog", "../../shared-contributions/travelcatalog-contribution/target/classes"),
+ new SCAContribution("payment", "../../shared-contributions/payment-contribution/target/classes"),
+ new SCAContribution("emailgateway", "../../shared-contributions/emailgateway-contribution/target/classes"),
+ new SCAContribution("shoppingcart", "../../shared-contributions/shoppingcart-contribution/target/classes"),
+ new SCAContribution("scatours", "../../shared-contributions/scatours-contribution/target/classes"),
+ new SCAContribution("ui", "../ui-contribution/target/classes"));
+ node.start();
+
+ System.out.println("Node started - Press enter to shutdown.");
+ try {
+ System.in.read();
+ } catch (IOException e) {}
+
+ node.stop();
+
+ } catch (Exception ex) {
+ System.out.println(ex.toString());
+ }
+ }
+}
diff --git a/sandbox/travelsample/chapter-05/pom.xml b/sandbox/travelsample/chapter-05/pom.xml
new file mode 100644
index 0000000000..8ea9d0f8cf
--- /dev/null
+++ b/sandbox/travelsample/chapter-05/pom.xml
@@ -0,0 +1,46 @@
+<?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.4-SNAPSHOT</version>
+ <!--relativePath>../pom.xml</relativePath-->
+ </parent>
+ <artifactId>tuscany-scatours-chapter-05</artifactId>
+ <packaging>pom</packaging>
+ <name>Apache Tuscany SCA Tours Chapter 05 Examples</name>
+
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>node</module>
+ <module>ui-contribution</module>
+ </modules>
+ </profile>
+
+ </profiles>
+
+</project>
diff --git a/sandbox/travelsample/ui-contribution/META-INF/sca-contribution.xml b/sandbox/travelsample/chapter-05/ui-contribution/META-INF/sca-contribution.xml
index 764030c28e..764030c28e 100644
--- a/sandbox/travelsample/ui-contribution/META-INF/sca-contribution.xml
+++ b/sandbox/travelsample/chapter-05/ui-contribution/META-INF/sca-contribution.xml
diff --git a/sandbox/travelsample/ui-contribution/build.xml b/sandbox/travelsample/chapter-05/ui-contribution/build.xml
index 981e37ca97..0aa96f56de 100644
--- a/sandbox/travelsample/ui-contribution/build.xml
+++ b/sandbox/travelsample/chapter-05/ui-contribution/build.xml
@@ -17,7 +17,7 @@
* under the License.
-->
-<project name="scatours-ui-contribution" default="compile">
+<project name="scatours-chapter-05-ui-contribution" default="compile">
<target name="compile">
<mkdir dir="target/classes"/>
@@ -31,7 +31,7 @@
<copy todir="target/classes">
<fileset dir="." excludes="**/*.java, pom.xml, build.xml, target"/>
</copy>
- <jar destfile="target/scatours-ui-contribution.jar" basedir="target/classes">
+ <jar destfile="target/scatours-chapter-05-ui-contribution.jar" basedir="target/classes">
<manifest>
<attribute name="Main-Class" value="launch.LaunchTutorialAdmin"/>
</manifest>
@@ -43,7 +43,7 @@
<target name="run">
<java classname="launch.LaunchTutorialAdmin" fork="true">
<classpath>
- <pathelement location="target/scatours-ui-contribution.jar"/>
+ <pathelement location="target/scatours-chapter-05-ui-contribution.jar"/>
<fileset refid="tuscany.jars"/>
<fileset refid="3rdparty.jars"/>
</classpath>
diff --git a/sandbox/travelsample/ui-contribution/pom.xml b/sandbox/travelsample/chapter-05/ui-contribution/pom.xml
index 9c4a00a6f3..e840ef994c 100644
--- a/sandbox/travelsample/ui-contribution/pom.xml
+++ b/sandbox/travelsample/chapter-05/ui-contribution/pom.xml
@@ -25,8 +25,8 @@
<version>1.5-SNAPSHOT</version>
<!--relativePath>../../pom.xml</relativePath-->
</parent>
- <artifactId>scatours-ui-contribution</artifactId>
- <name>Apache Tuscany SCA Tours User Interface Contribution</name>
+ <artifactId>scatours-chapter-05-ui-contribution</artifactId>
+ <name>Apache Tuscany SCA Tours Chapter 05 User Interface Contribution</name>
<dependencies>
<dependency>
diff --git a/sandbox/travelsample/ui-contribution/scatours.composite b/sandbox/travelsample/chapter-05/ui-contribution/scatours.composite
index 1bd437a92e..53fac26d3e 100644
--- a/sandbox/travelsample/ui-contribution/scatours.composite
+++ b/sandbox/travelsample/chapter-05/ui-contribution/scatours.composite
@@ -142,9 +142,9 @@
<implementation.java class="scatours.shoppingcart.ShoppingCartImpl"/>
<service name="ShoppingCart">
</service>
- <reference name="paymentProcess">
+ <!--reference name="paymentProcess">
<binding.ws uri="http://localhost:8083/PaymentProcess" />
- </reference>
+ </reference-->
</component>
<!--component name="PaymentProcessComponent">
diff --git a/sandbox/travelsample/ui-contribution/scatours.html b/sandbox/travelsample/chapter-05/ui-contribution/scatours.html
index f4206548c0..f4206548c0 100644
--- a/sandbox/travelsample/ui-contribution/scatours.html
+++ b/sandbox/travelsample/chapter-05/ui-contribution/scatours.html
diff --git a/sandbox/travelsample/ui-contribution/scatours.odg b/sandbox/travelsample/chapter-05/ui-contribution/scatours.odg
index 8ca8fbf133..8ca8fbf133 100644
--- a/sandbox/travelsample/ui-contribution/scatours.odg
+++ b/sandbox/travelsample/chapter-05/ui-contribution/scatours.odg
Binary files differ
diff --git a/sandbox/travelsample/ui-contribution/scatours.png b/sandbox/travelsample/chapter-05/ui-contribution/scatours.png
index f68cd84704..f68cd84704 100644
--- a/sandbox/travelsample/ui-contribution/scatours.png
+++ b/sandbox/travelsample/chapter-05/ui-contribution/scatours.png
Binary files differ
diff --git a/sandbox/travelsample/ui-contribution/style.css b/sandbox/travelsample/chapter-05/ui-contribution/style.css
index 6e17c2747b..6e17c2747b 100644
--- a/sandbox/travelsample/ui-contribution/style.css
+++ b/sandbox/travelsample/chapter-05/ui-contribution/style.css