You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/10/27 22:12:02 UTC

svn commit: r589203 - in /incubator/tuscany/java/sca/tutorial/store-eu/launch/eu: ./ LaunchEUStore.java

Author: jsdelfino
Date: Sat Oct 27 13:12:01 2007
New Revision: 589203

URL: http://svn.apache.org/viewvc?rev=589203&view=rev
Log:
Moved eu package under launch.

Added:
    incubator/tuscany/java/sca/tutorial/store-eu/launch/eu/
    incubator/tuscany/java/sca/tutorial/store-eu/launch/eu/LaunchEUStore.java   (with props)

Added: incubator/tuscany/java/sca/tutorial/store-eu/launch/eu/LaunchEUStore.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/store-eu/launch/eu/LaunchEUStore.java?rev=589203&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/store-eu/launch/eu/LaunchEUStore.java (added)
+++ incubator/tuscany/java/sca/tutorial/store-eu/launch/eu/LaunchEUStore.java Sat Oct 27 13:12:01 2007
@@ -0,0 +1,50 @@
+/*
+ * 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 launch.eu;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.sca.node.SCANode;
+import org.apache.tuscany.sca.node.SCANodeFactory;
+import org.apache.tuscany.sca.node.util.SCAContributionUtil;
+
+public class LaunchEUStore {
+    public static void main(String[] args) throws Exception {
+        System.out.println("Starting ...");
+        SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
+        SCANode node = nodeFactory.createSCANode("http://localhost:8102/store", "http://localhost:9999");
+        
+        URL contribution = SCAContributionUtil.findContributionFromClass(LaunchEUStore.class);
+        node.addContribution("http://store", contribution);
+        
+        node.addToDomainLevelComposite(new QName("http://store", "store-eu"));
+        node.start();
+
+        System.out.println("store-eu.composite ready for big business !!!");
+        System.in.read();
+        
+        System.out.println("Stopping ...");
+        node.stop();
+        node.destroy();
+        System.out.println();
+    }
+}

Propchange: incubator/tuscany/java/sca/tutorial/store-eu/launch/eu/LaunchEUStore.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/store-eu/launch/eu/LaunchEUStore.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org