diff options
Diffstat (limited to 'sandbox/slaws')
11 files changed, 588 insertions, 0 deletions
diff --git a/sandbox/slaws/domain-view/build.xml b/sandbox/slaws/domain-view/build.xml new file mode 100644 index 0000000000..684aa97ec8 --- /dev/null +++ b/sandbox/slaws/domain-view/build.xml @@ -0,0 +1,54 @@ +<!--
+ * 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="itest-nodes-two-jvms-hazelcast" default="run">
+
+ <target name="run">
+ <parallel failonany="true">
+
+ <!-- start a node that will be part of the domain -->
+ <java classpath="../../../../distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.dir/tuscany-sca-2.0-SNAPSHOT/features/tuscany-sca-manifest.jar:./target/classes"
+ classname="org.apache.tuscany.sca.impl.Tuscany"
+ fork="true"
+ failonerror="true">
+ <arg value="domain1"/>
+ <arg value="nodeService"/>
+ <arg value="8088"/>
+ </java>
+
+ <sequential>
+ <!-- give the first node a chance to start -->
+ <sleep seconds="5"/>
+ <!-- start a second node that automatically tries to call a service in the first node -->
+ <java classpath="../../../../distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.dir/tuscany-sca-2.0-SNAPSHOT/features/tuscany-sca-manifest.jar:./target/classes"
+ classname="org.apache.tuscany.sca.impl.Tuscany"
+ fork="true"
+ failonerror="true">
+ <arg value="domain1"/>
+ <arg value="nodeClient"/>
+ </java>
+ <!-- use a HTTP GET to ping the first node to tell it to stop -->
+ <get src="http://localhost:8088"
+ dest="target/deamon.txt"
+ ignoreerrors="true"/>
+ </sequential>
+
+ </parallel>
+ </target>
+
+</project>
diff --git a/sandbox/slaws/domain-view/pom.xml b/sandbox/slaws/domain-view/pom.xml new file mode 100644 index 0000000000..9ddd29dc3c --- /dev/null +++ b/sandbox/slaws/domain-view/pom.xml @@ -0,0 +1,102 @@ +<?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-itest</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>domain-view</artifactId>
+ <name>Apache Tuscany SCA Domain View</name>
+
+ <dependencies>
+ <!-- runtime -->
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-base-runtime-pom</artifactId>
+ <type>pom</type>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-implementation-java-runtime</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-sca-runtime</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-ws-runtime-axis2</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-rest-runtime</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-host-jetty</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-domain-hazelcast</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <!-- test artifacts -->
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>itest-nodes-helloworld-iface</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>run-samples</id>
+ <phase>test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks unless="maven.test.skip">
+ <property name="tuscany.version" value="${project.version}" />
+ <property name="runtime_classpath" refid="maven.runtime.classpath"/>
+ <ant antfile="./build.xml" target="run"/>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/interop/Domain.java b/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/interop/Domain.java new file mode 100644 index 0000000000..a8625e91a2 --- /dev/null +++ b/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/interop/Domain.java @@ -0,0 +1,145 @@ +/*
+ * 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 org.apache.tuscany.sca.domain.interop;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URI;
+import java.net.URL;
+import java.net.URLConnection;
+
+import javax.servlet.Servlet;
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletOutputStream;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.servlet.http.HttpServletRequest;
+
+import org.oasisopen.sca.annotation.Service;
+import org.apache.tuscany.sca.node.impl.NodeImpl;
+
+/**
+ * Some hand crafted HTTP code to help me think about what info is missing
+ * from the domain ragistry
+ *
+ */
+@Service(Domain.class)
+public class Domain implements Servlet {
+ public String getDomainComposite(){
+ NodeImpl node = (NodeImpl)Tuscany.node;
+ String domainComposite = node.dumpDomainComposite();
+ return domainComposite;
+ }
+
+ public String getComponent(){
+ NodeImpl node = (NodeImpl)Tuscany.node;
+ String domainComposite = node.dumpDomainComposite();
+ return domainComposite;
+ }
+
+ public void init(ServletConfig config) throws ServletException {
+ }
+
+ public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
+ HttpServletRequest httpRequest = (HttpServletRequest)request;
+ ServletOutputStream os = response.getOutputStream();
+
+ String pathInfo = httpRequest.getPathInfo();
+
+ if (pathInfo == null || pathInfo.length() < 1){
+ os.print("<html><body><p>URL should include at least a domain name, e.g. http://localhost/sca/mydomain</body></html>");
+ return;
+ }
+
+ pathInfo = pathInfo.substring(1);
+ String[] pathElements = pathInfo.split("/");
+
+ String domainName = pathElements[0];
+ String action = "none";
+
+ if (pathElements.length == 2){
+ action = pathElements[1];
+ }
+
+ // Just some hand crafted code to help me visualize resources
+ os.print("<html><body>");
+
+ if ( action.equals("composite")){
+ String domainComposite = getDomainComposite();
+ domainComposite = domainComposite.replaceAll("<", "<");
+ domainComposite = domainComposite.replaceAll(">", ">");
+ os.print("<html><body><p>" + domainComposite + "</body></html>");
+ return;
+ } else {
+ try {
+ File domainDir = new File("target/test-classes/" + domainName);
+
+ URI domainDirURI = domainDir.toURI();
+ URI domainResourceURI = domainDirURI.resolve(pathInfo);
+
+ os.print("<p/>contributions");
+
+ for (File subDir : domainDir.listFiles()){
+ if (!subDir.isDirectory()){
+ os.print("<p/><a href=\"" + subDir.toURI().toString() + "\">" + subDir.getName());
+ }
+ }
+
+ os.print("<p/>nodes");
+ os.print("<p/><a href=\"" + domainName + "/composite\">domainComposite</a>");
+
+ os.print("</body></html>");
+
+ return;
+ } catch (Exception ex){
+ ex.printStackTrace();
+ }
+ }
+
+ os.print("<html><body><p>no processing</body></html>");
+
+ }
+
+ public void destroy() {
+ }
+
+ public ServletConfig getServletConfig() {
+ return null;
+ }
+
+ public String getServletInfo() {
+ return null;
+ }
+
+ public void writeResource(ServletOutputStream os, URL url) throws Exception {
+ URLConnection connection = url.openConnection();
+ connection.setUseCaches(false);
+
+ InputStream is = connection.getInputStream();
+ int aChar;
+ while(( aChar = is.read()) != -1){
+ os.write(aChar);
+ }
+ }
+
+}
\ No newline at end of file diff --git a/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/interop/Tuscany.java b/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/interop/Tuscany.java new file mode 100644 index 0000000000..bafd818355 --- /dev/null +++ b/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/interop/Tuscany.java @@ -0,0 +1,152 @@ +/*
+ * 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 org.apache.tuscany.sca.domain.interop;
+
+import java.io.File;
+import java.io.FilenameFilter;
+import java.io.IOException;
+import java.net.ServerSocket;
+import java.net.Socket;
+import java.net.URL;
+
+import org.apache.tuscany.sca.node.Contribution;
+import org.apache.tuscany.sca.node.Node;
+import org.apache.tuscany.sca.node.NodeFactory;
+
+/**
+ * Main class for Tuscany. Just looking at what it means to read config from a directory structure.
+ *
+ */
+public class Tuscany {
+
+ public static Node node = null;
+ private static Node domain = null;
+
+ public static void main(String[] args) throws Exception {
+ String domainName = args[0];
+ String nodeName = args[1];
+ int deamonPort = -1;
+
+ if (args.length > 2){
+ deamonPort = Integer.parseInt(args[2]);
+ }
+
+ // find the domain directory
+ File currentDirectory = new File(".");
+ File domainDirectory = findDirectory(currentDirectory, domainName);
+ System.out.println("Domain: " + domainDirectory.getPath());
+
+ // find a sub directory that ends in nodeName
+ File nodeDirectory = findDirectory(currentDirectory, nodeName);
+ System.out.println("Node: " + nodeDirectory.getPath());
+
+ // start a node with the node configuration
+/* don't know how to start the node using the following
+ TuscanyRuntime tuscanyRuntime = TuscanyRuntime.newInstance();
+ Node node = tuscanyRuntime.createNodeFromXML(nodeDirectory.getPath() +
+ File.separator +
+ "node.xml");
+*/
+ NodeFactory nodeFactory = NodeFactory.newInstance();
+
+ // temporarily use the Tuscany runtime to expose domain services
+ // for looking at the domain in a RESTful way. Replace with more
+ // integrated code!
+ domain = nodeFactory.createNode(new Contribution("domain", "target/classes"));
+ domain.start();
+
+ URL nodeConfigURL = nodeDirectory.toURI().resolve("node.xml").toURL();
+ node = nodeFactory.createNode(nodeConfigURL);
+
+
+ try {
+ node.start();
+
+ // Use ? to provide web access to the domain details.
+
+ // for testing we're going to set up a deamon that listens for
+ // a shutdown message on a specified port (well it actually just
+ // waits for a client to connect to the port as that's all we need
+ // for now). If no port is specified then just stop straight away
+
+ if (deamonPort >= 0){
+ // Its a runtime that has to act as a deamon
+ ServerSocket serverSocket = null;
+
+ try {
+ serverSocket = new ServerSocket(deamonPort);
+ } catch (IOException e) {
+ System.out.println("Can't create a ServerSocket on port: " + deamonPort);
+ return;
+ }
+
+ // all we're doing here is waiting for a connection. If we wanted to implement
+ // a real deamon we should perhaps listen to what's coming in over the resulting socket
+ // and see if a shutdown has been requested
+ Socket clientSocket = null;
+ try {
+ clientSocket = serverSocket.accept();
+ } catch (IOException e) {
+ System.out.println("Accept failed on port: " + deamonPort);
+ return;
+ }
+ }
+
+ } finally {
+ node.stop();
+ domain.stop();
+ }
+ }
+
+ /**
+ * Just walks down the tree (depth first) looking for a directory ending in the
+ * name.
+ */
+ private static File findDirectory(File currentDirectory, String name){
+ File directory = null;
+
+ if (currentDirectory.getPath().endsWith(name)){
+ directory = currentDirectory;
+ } else {
+ File[] subDirectories = currentDirectory.listFiles(new DirectoryFilter());
+ for (File aDirectory : subDirectories) {
+ directory = findDirectory(aDirectory, name);
+
+ if (directory != null){
+ break;
+ }
+ }
+ }
+
+ return directory;
+ }
+
+ private static class DirectoryFilter implements FilenameFilter {
+
+ public boolean accept(File dir, String name) {
+ if(new File(dir, name).isDirectory()) {
+ return true;
+ }
+
+ return false;
+ }
+ }
+
+}
\ No newline at end of file diff --git a/sandbox/slaws/domain-view/src/main/resources/META-INF/sca-contribution.xml b/sandbox/slaws/domain-view/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..370fe9903c --- /dev/null +++ b/sandbox/slaws/domain-view/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ +<?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.
+-->
+<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ xmlns:sample="http://sample">
+
+ <deployable composite="sample:domain-composite" />
+
+</contribution>
diff --git a/sandbox/slaws/domain-view/src/main/resources/domain.composite b/sandbox/slaws/domain-view/src/main/resources/domain.composite new file mode 100644 index 0000000000..316c1693ec --- /dev/null +++ b/sandbox/slaws/domain-view/src/main/resources/domain.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://docs.oasis-open.org/ns/opencsa/sca/200912"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
+ targetNamespace="http://sample"
+ name="domain-composite">
+
+ <component name="Domain">
+ <implementation.java class="org.apache.tuscany.sca.domain.interop.Domain"/>
+ <service name="Domain">
+ <tuscany:binding.rest uri="http://localhost:8085/sca"/>
+ </service>
+ </component>
+
+</composite>
diff --git a/sandbox/slaws/domain-view/src/test/resources/domain1/helloworld-client-contribution.jar b/sandbox/slaws/domain-view/src/test/resources/domain1/helloworld-client-contribution.jar Binary files differnew file mode 100644 index 0000000000..c98214fc83 --- /dev/null +++ b/sandbox/slaws/domain-view/src/test/resources/domain1/helloworld-client-contribution.jar diff --git a/sandbox/slaws/domain-view/src/test/resources/domain1/helloworld-iface-contribution.jar b/sandbox/slaws/domain-view/src/test/resources/domain1/helloworld-iface-contribution.jar Binary files differnew file mode 100644 index 0000000000..455de9c58a --- /dev/null +++ b/sandbox/slaws/domain-view/src/test/resources/domain1/helloworld-iface-contribution.jar diff --git a/sandbox/slaws/domain-view/src/test/resources/domain1/helloworld-service-contribution.jar b/sandbox/slaws/domain-view/src/test/resources/domain1/helloworld-service-contribution.jar Binary files differnew file mode 100644 index 0000000000..28e3e680e9 --- /dev/null +++ b/sandbox/slaws/domain-view/src/test/resources/domain1/helloworld-service-contribution.jar diff --git a/sandbox/slaws/domain-view/src/test/resources/domain1/nodeClient/node.xml b/sandbox/slaws/domain-view/src/test/resources/domain1/nodeClient/node.xml new file mode 100644 index 0000000000..81f82a9590 --- /dev/null +++ b/sandbox/slaws/domain-view/src/test/resources/domain1/nodeClient/node.xml @@ -0,0 +1,39 @@ +<?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.
+-->
+<node xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ xmlns="http://tuscany.apache.org/xmlns/sca/1.1"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
+ uri="http://sample/nodes/node1"
+ domain="default"
+ domainRegistry="tuscany:default">
+
+ <!-- Configure the base URIs for a given binding -->
+ <!-- Each base URI is for a protocol supported by the binding -->
+ <binding name="sca:binding.sca" baseURIs="http://localhost:8081/sca https://localhost:8081/sca"/>
+ <binding name="sca:binding.ws" baseURIs="http://localhost:8082/ws https://localhost:8082/ws"/>
+
+ <!-- Configure a list of contributions -->
+ <contribution uri="iface" location="../helloworld-iface-contribution.jar"/>
+ <contribution uri="client" location="../helloworld-client-contribution.jar">
+ <!-- doesn't pick up the deployable composite properly without this?-->
+ <deploymentComposite location="helloworld-client.composite"/>
+ </contribution>
+
+</node>
\ No newline at end of file diff --git a/sandbox/slaws/domain-view/src/test/resources/domain1/nodeService/node.xml b/sandbox/slaws/domain-view/src/test/resources/domain1/nodeService/node.xml new file mode 100644 index 0000000000..2bb0bc7558 --- /dev/null +++ b/sandbox/slaws/domain-view/src/test/resources/domain1/nodeService/node.xml @@ -0,0 +1,39 @@ +<?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.
+-->
+<node xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ xmlns="http://tuscany.apache.org/xmlns/sca/1.1"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
+ uri="http://sample/nodes/TestNode3"
+ domain="default"
+ domainRegistry="tuscany:default?listen=127.0.0.1:14820">
+
+ <!-- Configure the base URIs for a given binding -->
+ <!-- Each base URI is for a protocol supported by the binding -->
+ <binding name="sca:binding.sca" baseURIs="http://localhost:8081/sca https://localhost:8081/sca"/>
+ <binding name="sca:binding.ws" baseURIs="http://localhost:8082/ws https://localhost:8082/ws"/>
+
+ <!-- Configure a list of contributions -->
+ <contribution uri="iface" location="../helloworld-iface-contribution.jar"/>
+ <contribution uri="service" location="../helloworld-service-contribution.jar">
+ <!-- doesn't pick up the deployable composite properly without this?-->
+ <deploymentComposite location="helloworld-service.composite"/>
+ </contribution>
+
+</node>
\ No newline at end of file |