summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppDomain.java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-06-02 22:30:50 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-06-02 22:30:50 +0000
commit0171c408cd3745ec12ab191d05309ba245236172 (patch)
treebbaf705b47818a7850c5305160b6be6e47123fd7 /sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppDomain.java
parent26a0b619df3a85a84aadd780305a80dc495ef6e1 (diff)
Add the changes and configuration necessary to allow the full travel sample to run under the control of the domain manager. The domain manager changes rely on some changes in order to run. Namely TUSCANY-3070/3075/3062.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@781189 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppDomain.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppDomain.java b/sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppDomain.java
new file mode 100644
index 0000000000..9fae5de58a
--- /dev/null
+++ b/sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppDomain.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package scatours;
+
+import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher;
+
+public class LaunchFullAppDomain {
+ public static void main(String[] args) throws Exception {
+ LaunchFullAppDomain.launchFromFileSystemDir();
+ }
+
+ public static void launchFromFileSystemDir(){
+
+ try {
+ DomainManagerLauncher.main(null);
+ } catch (Exception ex) {
+ System.out.println(ex.toString());
+ }
+ }
+}