You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2009/01/22 02:08:46 UTC
svn commit: r736513 - in
/openejb/trunk/openejb3/examples/webapps/ejb-webservice: ./ src/ src/main/
src/main/java/ src/main/java/org/ src/main/java/org/superbiz/
src/main/java/org/superbiz/ws/ src/main/resources/ src/main/webapp/
src/main/webapp/WEB-INF/
Author: dblevins
Date: Wed Jan 21 17:08:45 2009
New Revision: 736513
URL: http://svn.apache.org/viewvc?rev=736513&view=rev
Log:
Simple EJB webservice for a webapp
Added:
openejb/trunk/openejb3/examples/webapps/ejb-webservice/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/pom.xml
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/java/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/java/org/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/java/org/superbiz/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/java/org/superbiz/ws/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/java/org/superbiz/ws/Calculator.java
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/resources/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/webapp/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/webapp/WEB-INF/
openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/webapp/WEB-INF/web.xml
Added: openejb/trunk/openejb3/examples/webapps/ejb-webservice/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/ejb-webservice/pom.xml?rev=736513&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/ejb-webservice/pom.xml (added)
+++ openejb/trunk/openejb3/examples/webapps/ejb-webservice/pom.xml Wed Jan 21 17:08:45 2009
@@ -0,0 +1,89 @@
+<?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.
+-->
+
+<!-- $Rev: 684173 $ $Date: 2008-08-08 20:13:24 -0700 (Fri, 08 Aug 2008) $ -->
+
+<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.superbiz</groupId>
+ <artifactId>ejb-webservice</artifactId>
+ <packaging>war</packaging>
+ <version>1.1-SNAPSHOT</version>
+ <name>OpenEJB :: Web Examples :: EJB WebService</name>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.openejb</groupId>
+ <artifactId>javaee-api</artifactId>
+ <version>5.0-1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <defaultGoal>install</defaultGoal>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clover-plugin</artifactId>
+ <configuration>
+ <jdk>1.5</jdk>
+ <excludes>
+ <exclude>**/package-info.java</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <id>site</id>
+ <phase>pre-site</phase>
+ <goals>
+ <goal>instrument</goal>
+ <goal>aggregate</goal>
+ <goal>save-history</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
+
Added: openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/java/org/superbiz/ws/Calculator.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/java/org/superbiz/ws/Calculator.java?rev=736513&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/java/org/superbiz/ws/Calculator.java (added)
+++ openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/java/org/superbiz/ws/Calculator.java Wed Jan 21 17:08:45 2009
@@ -0,0 +1,36 @@
+/**
+ * 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.superbiz.ws;
+
+ import javax.ejb.Stateless;
+ import javax.jws.WebService;
+
+ @Stateless
+ @WebService(portName = "CalculatorPort",
+ serviceName = "CalculatorWebService",
+ targetNamespace = "http://superbiz.org/wsdl")
+ public class Calculator {
+ public int sum(int add1, int add2) {
+ return add1 + add2;
+ }
+
+ public int multiply(int mul1, int mul2) {
+ return mul1 * mul2;
+ }
+
+ }
+
Added: openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/webapp/WEB-INF/web.xml?rev=736513&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/webapp/WEB-INF/web.xml (added)
+++ openejb/trunk/openejb3/examples/webapps/ejb-webservice/src/main/webapp/WEB-INF/web.xml Wed Jan 21 17:08:45 2009
@@ -0,0 +1,28 @@
+<?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.
+-->
+
+<!-- $Rev: 634170 $ $Date: 2008-03-05 21:30:10 -0800 (Wed, 05 Mar 2008) $ -->
+
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ metadata-complete="false"
+ version="2.5">
+
+</web-app>