[jboss-cvs] JBossAS SVN: r97632 - in projects/snowdrop/examples/trunk: spring-jboss-jaxws and 8 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 9 13:09:49 EST 2009
Author: marius.bogoevici
Date: 2009-12-09 13:09:49 -0500 (Wed, 09 Dec 2009)
New Revision: 97632
Added:
projects/snowdrop/examples/trunk/spring-jboss-jaxws/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/pom.xml
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/adder/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/adder/Adder.java
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/adder/Multiplier.java
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/META-INF/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/META-INF/MANIFEST.MF
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/lib/
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/spring-config.xml
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/web.xml
projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/index.jsp
Log:
Using an older sample
Added: projects/snowdrop/examples/trunk/spring-jboss-jaxws/pom.xml
===================================================================
--- projects/snowdrop/examples/trunk/spring-jboss-jaxws/pom.xml (rev 0)
+++ projects/snowdrop/examples/trunk/spring-jboss-jaxws/pom.xml 2009-12-09 18:09:49 UTC (rev 97632)
@@ -0,0 +1,27 @@
+<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.jboss.springexample</groupId>
+ <artifactId>spring-jboss-jaxws</artifactId>
+ <packaging>war</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>spring-jboss-jaxws Maven Webapp</name>
+ <url>http://maven.apache.org</url>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-web</artifactId>
+ <version>2.5.6</version>
+ </dependency>
+
+ </dependencies>
+ <build>
+ <finalName>spring-jboss-jaxws</finalName>
+ </build>
+</project>
Added: projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/adder/Adder.java
===================================================================
--- projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/adder/Adder.java (rev 0)
+++ projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/adder/Adder.java 2009-12-09 18:09:49 UTC (rev 97632)
@@ -0,0 +1,23 @@
+package springdemo.adder;
+
+import javax.jws.WebService;
+import javax.jws.WebMethod;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.web.context.support.SpringBeanAutowiringSupport;
+
+ at WebService(serviceName = "adderService", targetNamespace = "")
+public class Adder extends SpringBeanAutowiringSupport
+{
+ @Autowired
+ @Qualifier("message")
+ String message;
+
+ @WebMethod
+ public String add(int x, int y)
+ {
+ return message + x + y;
+ }
+
+}
Added: projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/adder/Multiplier.java
===================================================================
--- projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/adder/Multiplier.java (rev 0)
+++ projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/java/springdemo/adder/Multiplier.java 2009-12-09 18:09:49 UTC (rev 97632)
@@ -0,0 +1,20 @@
+package springdemo.adder;
+
+import javax.jws.WebService;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: marius
+ * Date: Mar 31, 2009
+ * Time: 5:03:15 PM
+ * To change this template use File | Settings | File Templates.
+ */
+ at WebService(serviceName = "adder")
+public class Multiplier
+{
+ public int multiply(int x, int y)
+ {
+ return x * y;
+ }
+
+}
Added: projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/META-INF/MANIFEST.MF 2009-12-09 18:09:49 UTC (rev 97632)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/spring-config.xml
===================================================================
--- projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/spring-config.xml (rev 0)
+++ projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/spring-config.xml 2009-12-09 18:09:49 UTC (rev 97632)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <bean id="multiplier" class="springdemo.adder.Multiplier" />
+
+ <bean class="org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter">
+ <property name="baseAddress" value="http://localhost:8080/" />
+ </bean>
+
+ <bean id="message" class="java.lang.String">
+ <constructor-arg>
+ <value>Result is:</value>
+ </constructor-arg>
+ </bean>
+</beans>
\ No newline at end of file
Added: projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/web.xml
===================================================================
--- projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/WEB-INF/web.xml 2009-12-09 18:09:49 UTC (rev 97632)
@@ -0,0 +1,21 @@
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+ <context-param>
+ <param-name>contextConfigLocation</param-name>
+ <param-value>/WEB-INF/spring-config.xml</param-value>
+ </context-param>
+ <listener>
+ <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
+ </listener>
+ <servlet>
+ <servlet-name>TestService</servlet-name>
+ <servlet-class>springdemo.adder.Adder</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>TestService</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+ </web-app>
Added: projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/index.jsp
===================================================================
--- projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/index.jsp (rev 0)
+++ projects/snowdrop/examples/trunk/spring-jboss-jaxws/src/main/webapp/index.jsp 2009-12-09 18:09:49 UTC (rev 97632)
@@ -0,0 +1,5 @@
+<html>
+<body>
+<h2>Hello World!</h2>
+</body>
+</html>
More information about the jboss-cvs-commits
mailing list