Commit 015d4b8e authored by Philippe Merle's avatar Philippe Merle

* added examples/helloworld-servlet/

  illustrate <tuscany:binding.http>
* added 'availability-intent' in the build process
* examples/frascati-test/
  - add a dependency to module 'frascati-fscript'
  - update test classes with new FraSCAti exceptions
* examples/helloworld-rmi/
  - add a dependency to module 'frascati-binding-rmi'
* examples/helloworld-script/
  - add a dependency to module 'frascati-implementation-script'
* examples/reconfig/
  - add dependencies to modules 'frascati-binding-rest' and 'frascati-binding-ws'
  - add a profile -Pdemo-adt-galaxy
  - add an HTML page to use the converter service
  - add 'just-converter' SCA composite and diagram
  - add 'reconfigure-dollar.fscript'
* examples/twitter-rest/
  - add a dependency to module 'frascati-binding-rest'
* examples/counter-rest/server-war/
  - add a dependency to module 'frascati-binding-rest'
* examples/ws-parent/
  - add a dependency to module 'frascati-binding-ws'
* examples/chat/
  - update to new FraSCAti exceptions.
* Various cosmetic updates in pom.xml
parent 31df14ca
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>frascati-availability-intent</artifactId>
<version>1.1.1</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: Availability Intent</name>
......@@ -39,7 +38,7 @@
<parent>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>parent</artifactId>
<version>1.1.1</version>
<version>1.3-SNAPSHOT</version>
</parent>
<properties>
......@@ -47,12 +46,14 @@
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.6</version>
<groupId>org.ow2.frascati.examples.test</groupId>
<artifactId>frascati-test</artifactId>
<version>${frascati.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
......@@ -26,6 +26,7 @@
package org.ow2.frascati.intent.availability.test;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.objectweb.fractal.api.Component;
import org.osoa.sca.ServiceUnavailableException;
......@@ -34,7 +35,12 @@ import org.ow2.frascati.tinfi.TinfiDomain;
public class AvailabilityTestCase {
Factory factory = new Factory();
Factory factory;
@Before
public void init() throws Exception {
factory = new Factory();
}
@Test
public void availability() throws Exception {
......
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>calculator-client</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: Calculator Client</name>
......
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>calculator-parent</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>pom</packaging>
<name>OW2 FraSCAti Examples: Calculator</name>
......
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>calculator-server</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: Calculator Server</name>
......
......@@ -30,13 +30,15 @@ import java.util.logging.Logger;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;
import org.objectweb.fractal.api.Component;
import org.objectweb.fractal.api.NoSuchInterfaceException;
import org.osoa.sca.annotations.Scope;
import org.ow2.frascati.factory.Factory;
import org.ow2.frascati.factory.FactoryException;
import org.ow2.frascati.factory.FactoryInstantiationException;
import org.ow2.frascati.tinfi.TinfiDomain;
import org.ow2.frascati.util.FrascatiException;
import examples.chat.Chat;
......@@ -99,10 +101,9 @@ public class ChatGUI
/**
* Main method launching the application.
* @throws FactoryException if the composite cannot be loaded
* @throws FactoryInstantiationException if the SCA factory cannot be loade
* @throws FrascatiException if the SCA factory or the composite cannot be loaded
*/
public static void main(String[] args) throws FactoryException, FactoryInstantiationException {
public static void main(String[] args) throws FrascatiException {
// Instantiate the client composite
String compositeName = "chat-gui-client",
serviceName = "chatService";
......
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>chat-parent</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>pom</packaging>
<name>OW2 FraSCAti Examples: Chat application</name>
......
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>counter-client</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: RESTful Counter Client</name>
......
......@@ -30,7 +30,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>counter-parent</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>pom</packaging>
<name>OW2 FraSCAti Examples: RESTful Counter</name>
......
......@@ -27,7 +27,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>counter-server-explorer-web-application</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>war</packaging>
<parent>
......@@ -81,7 +80,7 @@
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-explorer-core</artifactId>
<version>${project.version}</version>
<version>${frascati.version}</version>
</dependency>
</dependencies>
......
......@@ -27,7 +27,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>counter-server-web-application</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>war</packaging>
<parent>
......@@ -77,11 +76,11 @@
<version>${project.version}</version>
</dependency>
<!-- Include in the war the FraSCAti Runtime Assembly Factory. -->
<!-- Include in the war the FraSCAti Binding REST. -->
<dependency>
<groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-af-runtime</artifactId>
<version>${project.version}</version>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-binding-rest</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
......
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>counter-server</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: RESTful Counter Server</name>
......
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>dictionary</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: Dictionary</name>
......@@ -61,17 +60,14 @@
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.ow2.frascati.examples.test</groupId>
<artifactId>frascati-test</artifactId>
<version>${project.version}</version>
<version>${frascati.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
......@@ -2,7 +2,7 @@
<!--
* OW2 FraSCAti Examples: Testing module
*
* Copyright (c) 2009 INRIA, USTL
* Copyright (c) 2009-2010 INRIA, USTL
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -26,30 +26,36 @@
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
<groupId>org.ow2.frascati.examples.test</groupId>
<artifactId>frascati-test</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: Testing module</name>
<description>APIs for running SCA applications with FraSCAti</description>
<parent>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
<description>APIs for testing SCA applications with FraSCAti</description>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-fscript</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</project>
......@@ -21,9 +21,9 @@
package org.ow2.frascati.examples.test;
import org.junit.Before;
import org.ow2.frascati.fscript.FrascatiScriptFactory;
import org.ow2.frascati.factory.FactoryException;
import org.ow2.frascati.factory.FactoryInstantiationException;
import org.ow2.frascati.util.FrascatiException;
/**
* An utility class used to run tests on FraSCAti runtime with FScript enable.
......@@ -37,11 +37,11 @@ public abstract class FraSCAtiScriptTestCase extends FraSCAtiTestCase {
*
* @param name
* the composite name
* @throws FactoryException, FactoryInstantiationException
* @throws FrascatiException
*/
@Before
@Override
public void loadComposite() throws FactoryException, FactoryInstantiationException {
public void loadComposite() throws FrascatiException {
String compositeName = getComposite();
System.out.println("Loading " + compositeName + " composite...");
scaComposite = new FrascatiScriptFactory().getComposite(compositeName);
......
......@@ -27,13 +27,14 @@ package org.ow2.frascati.examples.test;
import org.junit.After;
import org.junit.Before;
import org.objectweb.fractal.api.Component;
import org.objectweb.fractal.api.NoSuchInterfaceException;
import org.objectweb.fractal.api.control.IllegalLifeCycleException;
import org.ow2.frascati.factory.Factory;
import org.ow2.frascati.factory.FactoryException;
import org.ow2.frascati.factory.FactoryInstantiationException;
import org.ow2.frascati.tinfi.TinfiDomain;
import org.ow2.frascati.util.FrascatiException;
/**
* Abstract class for testing SCA applications with FraSCAti
......@@ -51,10 +52,10 @@ public abstract class FraSCAtiTestCase {
*
* @param name
* the composite name
* @throws FactoryException, FactoryInstantiationException
* @throws FrascatiException
*/
@Before
public void loadComposite() throws FactoryException, FactoryInstantiationException {
public void loadComposite() throws FrascatiException {
String compositeName = getComposite();
System.out.println("Loading " + compositeName + " composite...");
scaComposite = new Factory().getComposite(compositeName);
......
......@@ -29,7 +29,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>helloworld-annotations</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: HelloWorld annotated</name>
......@@ -56,7 +55,7 @@
<dependency>
<groupId>org.ow2.frascati.examples.test</groupId>
<artifactId>frascati-test</artifactId>
<version>${project.version}</version>
<version>${frascati.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
......
......@@ -29,7 +29,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>helloworld-pojo</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: HelloWorld POJO</name>
......@@ -56,7 +55,7 @@
<dependency>
<groupId>org.ow2.frascati.examples.test</groupId>
<artifactId>frascati-test</artifactId>
<version>${project.version}</version>
<version>${frascati.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
......
......@@ -29,7 +29,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>helloworld-property</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: HelloWorld Property</name>
......@@ -57,7 +56,7 @@
<dependency>
<groupId>org.ow2.frascati.examples.test</groupId>
<artifactId>frascati-test</artifactId>
<version>${project.version}</version>
<version>${frascati.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
......
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>helloworld-rmi-client</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: HelloWorld RMI Client</name>
......
<?xml version="1.0"?>
<!--
* OW2 FraSCAti Examples: Helloworld RMI
*
* Copyright (c) 2009 INRIA, USTL
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Contact: frascati@ow2.org
*
* Author: Nicolas Dolet
*
* Contributor(s):
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>helloworld-rmi-parent</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>pom</packaging>
<name>OW2 FraSCAti Examples: HelloWorld RMI</name>
<parent>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
<modules>
<module>client</module>
<module>server</module>
</modules>
</project>
<?xml version="1.0"?>
<!--
* OW2 FraSCAti Examples: Helloworld RMI
*
* Copyright (c) 2009-2010 INRIA, USTL
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Contact: frascati@ow2.org
*
* Author: Nicolas Dolet
*
* Contributor(s): Philippe Merle
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>helloworld-rmi-parent</artifactId>
<packaging>pom</packaging>
<name>OW2 FraSCAti Examples: HelloWorld RMI</name>
<parent>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
<dependencies>
<!-- OW2 FraSCAti Java RMI Binding. -->
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-binding-rmi</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
<modules>
<module>client</module>
<module>server</module>
</modules>
</project>
......@@ -31,7 +31,6 @@
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>helloworld-rmi-server</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: HelloWorld RMI Server</name>
......
......@@ -2,7 +2,7 @@
<!--
* OW2 FraSCAti Examples: HelloWorld Script
*
* Copyright (c) 2009 INRIA, USTL
* Copyright (c) 2009-2010 INRIA, USTL
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -24,12 +24,13 @@
*
* Contributor(s): Christophe Demarey
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>helloworld-script</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: HelloWorld Script</name>
......@@ -65,6 +66,13 @@
<!-- ============= -->
<dependencies>
<!-- OW2 FraSCAti Script Implementation. -->
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-implementation-script</artifactId>
<version>${frascati.version}</version>
</dependency>
<!-- BeanShell Scripting Engine. -->
<dependency>
<groupId>org.beanshell</groupId>
......@@ -137,20 +145,14 @@
<!-- Tests -->
<!-- ===== -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.ow2.frascati.examples.test</groupId>
<artifactId>frascati-test</artifactId>
<version>${project.version}</version>
<version>${frascati.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<!-- ===== -->
<!-- Build -->
<!-- ===== -->
......
<?xml version="1.0"?>
<!--
* OW2 FraSCAti Examples: HelloWorld Servlet
*
* Copyright (c) 2010 INRIA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Contact: frascati@ow2.org
*
* Author: Philippe Merle
*
* Contributor(s):
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
<groupId>org.ow2.frascati.examples</groupId>
<artifactId>frascati-helloworld-servlet</artifactId>
<packaging>jar</packaging>
<name>OW2 FraSCAti Examples: HelloWorld Servlet</name>
<properties>
<composite.file>helloworld-servlet</composite.file>
</properties>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-binding-http</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</project>
/**
* OW2 FraSCAti Examples: HelloWorld Servlet
* Copyright (C) 2010 INRIA, USTL
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: Philippe Merle
*
* Contributor(s):
*/
package org.ow2.frascati.examples.helloworld.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.osoa.sca.annotations.Property;
public class HelloWorldHttpServlet extends HttpServlet {
/**
* A configurable property 'name'.
*/
@Property(name = "name")
protected String name;
/**
* @see HttpServlet#doGet(HttpServletRequest, HttpServletResponse)
*/
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String query = request.getQueryString();
out.println("<html><body>Hello " + (query==null?"World":query) + " I'm " + name + "</body></html>");
out.close();
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!-- OW2 FraSCAti Examples: HelloWorld Servlet -->
<!-- Copyright (C) 2010 INRIA -->
<!-- -->
<!-- This library is free software; you can redistribute it and/or -->
<!-- modify it under the terms of the GNU Lesser General Public -->
<!-- License as published by the Free Software Foundation; either -->
<!-- version 2 of the License, or (at your option) any later version. -->
<!-- -->
<!-- This library is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -->
<!-- Lesser General Public License for more details. -->
<!-- -->
<!-- You should have received a copy of the GNU Lesser General Public -->
<!-- License along with this library; if not, write to the Free Software -->
<!-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
<!-- -->
<!-- Contact: frascati@ow2.org -->
<!-- -->
<!-- Author: Philippe Merle -->
<!-- -->
<!-- Contributor(s): -->
<!-- -->
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
name="helloworld-servlet">
<component name="HelloWorld-1">
<implementation.java class="org.ow2.frascati.examples.helloworld.servlet.HelloWorldHttpServlet"/>
<service name="Servlet">
<interface.java interface="javax.servlet.Servlet"/>
<tuscany:binding.http uri="http://localhost:8081/Hello"/>
</service>
<property name="name">John Smith</property>
</component>
<component name="HelloWorld-2">