summaryrefslogtreecommitdiffstats
path: root/sandbox/slaws/runtimecompat/2xlauncher/src/main/java/launcher/TwoXLauncher.java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-11-12 19:36:24 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-11-12 19:36:24 +0000
commit0e6af7f88e3fea20e8f75236ef4873d4efdb6c8f (patch)
tree016255532ae67b022d00f18f88197445cb6cbd4f /sandbox/slaws/runtimecompat/2xlauncher/src/main/java/launcher/TwoXLauncher.java
parent7f9ab2a980b482f97f2b18e0f9a35455428dcf08 (diff)
looking at the practicalities of running 1.x and 2.x runtimes in the same JVM. Doesn't do anything interesting yet.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835512 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/slaws/runtimecompat/2xlauncher/src/main/java/launcher/TwoXLauncher.java')
-rw-r--r--sandbox/slaws/runtimecompat/2xlauncher/src/main/java/launcher/TwoXLauncher.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/sandbox/slaws/runtimecompat/2xlauncher/src/main/java/launcher/TwoXLauncher.java b/sandbox/slaws/runtimecompat/2xlauncher/src/main/java/launcher/TwoXLauncher.java
new file mode 100644
index 0000000000..128617cb32
--- /dev/null
+++ b/sandbox/slaws/runtimecompat/2xlauncher/src/main/java/launcher/TwoXLauncher.java
@@ -0,0 +1,38 @@
+/*
+ * 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 launcher;
+
+import org.apache.tuscany.sca.node.Contribution;
+import org.apache.tuscany.sca.node.Node;
+import org.apache.tuscany.sca.node.NodeFactory;
+
+
+public class TwoXLauncher {
+
+ public static void main(String[] args) throws Exception {
+ Node node = NodeFactory.newInstance().createNode("Calculator.composite",
+ new Contribution("calculator", "../2xcalculator.jar"));
+
+ node.start();
+
+
+ node.stop();
+ }
+}