You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2007/10/29 16:02:58 UTC
svn commit: r589664 - in /incubator/tuscany/sandbox/ant/performance: ./
helloworld-ws-java/ helloworld-ws-java/src/ helloworld-ws-java/src/main/
helloworld-ws-java/src/main/java/
helloworld-ws-java/src/main/java/helloworld/ helloworld-ws-java/src/main/...
Author: antelder
Date: Mon Oct 29 08:02:56 2007
New Revision: 589664
URL: http://svn.apache.org/viewvc?rev=589664&view=rev
Log:
Contributions for basic perfomance comparison of Javascript ws components
Added:
incubator/tuscany/sandbox/ant/performance/
incubator/tuscany/sandbox/ant/performance/README (with props)
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/pom.xml (with props)
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldImpl.java (with props)
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldService.java (with props)
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/resources/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/resources/META-INF/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/resources/META-INF/sca-deployables/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/resources/META-INF/sca-deployables/application.composite
incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/pom.xml (with props)
incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/META-INF/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/META-INF/sca-deployables/
incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/META-INF/sca-deployables/application.composite
incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/helloworld.wsdl (with props)
Added: incubator/tuscany/sandbox/ant/performance/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/performance/README?rev=589664&view=auto
==============================================================================
--- incubator/tuscany/sandbox/ant/performance/README (added)
+++ incubator/tuscany/sandbox/ant/performance/README Mon Oct 29 08:02:56 2007
@@ -0,0 +1,10 @@
+Initial stab at doing some performance testing of Tuscany WS, Java and script components
+
+Download Apache JMeter from: http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi
+
+Unzip JMeter, startup with startup script in jakarta-jmeter-2.3\bin folder.
+
+Load testplan, from JMeter: File -> Open, navigate to helloworld1.jmx (in the same folder as this README
+
+
+
\ No newline at end of file
Propchange: incubator/tuscany/sandbox/ant/performance/README
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/ant/performance/README
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/pom.xml?rev=589664&view=auto
==============================================================================
--- incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/pom.xml (added)
+++ incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/pom.xml Mon Oct 29 08:02:56 2007
@@ -0,0 +1,43 @@
+<?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-sca</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>helloworld-ws-java</artifactId>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca-api</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+
+</project>
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldImpl.java?rev=589664&view=auto
==============================================================================
--- incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldImpl.java (added)
+++ incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldImpl.java Mon Oct 29 08:02:56 2007
@@ -0,0 +1,33 @@
+/*
+ * 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 helloworld;
+
+import org.osoa.sca.annotations.Service;
+
+/**
+ * This class implements the HelloWorld service.
+ */
+@Service(HelloWorldService.class)
+public class HelloWorldImpl implements HelloWorldService {
+
+ public String getGreetings(String name) {
+ return "Hello " + name;
+ }
+
+}
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldService.java?rev=589664&view=auto
==============================================================================
--- incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldService.java (added)
+++ incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldService.java Mon Oct 29 08:02:56 2007
@@ -0,0 +1,30 @@
+/*
+ * 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 helloworld;
+
+import org.osoa.sca.annotations.Remotable;
+
+/**
+ * This is the business interface of the HelloWorld greetings service.
+ */
+@Remotable
+public interface HelloWorldService {
+
+ public String getGreetings(String name);
+}
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/resources/META-INF/sca-deployables/application.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/resources/META-INF/sca-deployables/application.composite?rev=589664&view=auto
==============================================================================
--- incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/resources/META-INF/sca-deployables/application.composite (added)
+++ incubator/tuscany/sandbox/ant/performance/helloworld-ws-java/src/main/resources/META-INF/sca-deployables/application.composite Mon Oct 29 08:02:56 2007
@@ -0,0 +1,35 @@
+<?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://www.osoa.org/xmlns/sca/1.0"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://helloworld"
+ name="helloworldwsjava">
+
+ <component name="HelloWorldComponentJava">
+
+ <implementation.java class="helloworld.HelloWorldImpl" />
+
+ <service name="HelloWorldService">
+ <binding.ws/>
+ </service>
+
+ </component>
+
+</composite>
Added: incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/pom.xml?rev=589664&view=auto
==============================================================================
--- incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/pom.xml (added)
+++ incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/pom.xml Mon Oct 29 08:02:56 2007
@@ -0,0 +1,101 @@
+<?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-sca</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>helloworld-ws-js</artifactId>
+
+ <repositories>
+ <repository>
+ <id>apache.incubator</id>
+ <url>http://people.apache.org/repo/m2-incubating-repository</url>
+ </repository>
+ <!-- This is for the WSO2 E4X impl -->
+ <repository>
+ <id>wso2</id>
+ <url>http://dist.wso2.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-host-webapp</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-ws-axis2</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-implementation-script</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>rhino</groupId>
+ <artifactId>js</artifactId>
+ <version>1.6R7</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.wso2.wsf.javascript</groupId>
+ <artifactId>axiom-e4x</artifactId>
+ <version>0.29</version>
+ <scope>runtime</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-impl</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>rhino</groupId>
+ <artifactId>js-core</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+
+</project>
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/META-INF/sca-deployables/application.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/META-INF/sca-deployables/application.composite?rev=589664&view=auto
==============================================================================
--- incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/META-INF/sca-deployables/application.composite (added)
+++ incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/META-INF/sca-deployables/application.composite Mon Oct 29 08:02:56 2007
@@ -0,0 +1,44 @@
+<?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://www.osoa.org/xmlns/sca/1.0"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ targetNamespace="http://helloworld"
+ name="helloworldwsjs">
+
+ <component name="HelloWorldComponentJS">
+
+ <tuscany:implementation.script language="js"><![CDATA[
+
+ function getGreetings(xmlIn) {
+ return <ns1:getGreetingsResponse xmlns:ns1="http://helloworld">
+ <ns1:getGreetingsReturn>jsHello { xmlIn..*::name.toString() }</ns1:getGreetingsReturn>
+ </ns1:getGreetingsResponse>
+ }
+
+ ]]></tuscany:implementation.script>
+
+ <service name="HelloWorldService">
+ <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)" />
+ <binding.ws/>
+ </service>
+
+ </component>
+
+</composite>
Added: incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/helloworld.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/helloworld.wsdl?rev=589664&view=auto
==============================================================================
--- incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/helloworld.wsdl (added)
+++ incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/helloworld.wsdl Mon Oct 29 08:02:56 2007
@@ -0,0 +1,79 @@
+<?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.
+-->
+<wsdl:definitions targetNamespace="http://helloworld" xmlns:tns="http://helloworld" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ name="helloworld">
+
+ <wsdl:types>
+ <schema elementFormDefault="qualified" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema">
+
+ <element name="getGreetings">
+ <complexType>
+ <sequence>
+ <element name="name" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+
+ <element name="getGreetingsResponse">
+ <complexType>
+ <sequence>
+ <element name="getGreetingsReturn" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="getGreetingsRequest">
+ <wsdl:part element="tns:getGreetings" name="parameters"/>
+ </wsdl:message>
+
+ <wsdl:message name="getGreetingsResponse">
+ <wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloWorld">
+ <wsdl:operation name="getGreetings">
+ <wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/>
+ <wsdl:output message="tns:getGreetingsResponse" name="getGreetingsResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloWorldSoapBinding" type="tns:HelloWorld">
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="getGreetings">
+ <wsdlsoap:operation soapAction=""/>
+ <wsdl:input name="getGreetingsRequest">
+ <wsdlsoap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getGreetingsResponse">
+ <wsdlsoap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="HelloWorldService">
+ <wsdl:port binding="tns:HelloWorldSoapBinding" name="HelloWorldSoapPort">
+ <wsdlsoap:address location="http://localhost:8080/services/HelloWorldWebService"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/helloworld.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/helloworld.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/sandbox/ant/performance/helloworld-ws-js/src/main/resources/helloworld.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org