cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r572495 - in /incubator/cxf/trunk/distribution/src/main/release/samples: groovy_spring_support/ groovy_spring_support/src/ groovy_spring_support/src/demo/ groovy_spring_support/src/demo/spring/ groovy_spring_support/src/demo/spring/client/ ...
Date Tue, 04 Sep 2007 02:42:24 GMT
Author: mmao
Date: Mon Sep  3 19:42:22 2007
New Revision: 572495

URL: http://svn.apache.org/viewvc?rev=572495&view=rev
Log:
CXF-965 Dynamic language samples
  * Groovy-Spring sample
  * JRuby-Spring sample
Thanks Jeff Zhang for the patch



Added:
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/README.txt
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/build.xml
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.groovy
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.java
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorldImpl.groovy
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/Client.java
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/client-beans.xml
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/servlet/
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/servlet/Server.java
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/beans-groovy.xml
    incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/web.xml
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/README.txt
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/build.xml
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorld.java
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorldImpl.rb
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/Client.java
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/client-beans.xml
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/servlet/
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/servlet/Server.java
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/beans-ruby.xml
    incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/web.xml

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/README.txt?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/README.txt
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/README.txt
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,55 @@
+Groovy script demo
+=============================================
+This example will lead you through creating groovy web service 
+implement with Spring. You'll learn how to:
+
+    * Writing a simple groovy script web service
+
+For more information see the documentation for this example in the
+user's guide.
+
+
+Prerequisite
+------------
+
+If your environment already includes cxf-manifest-incubator.jar on the
+CLASSPATH, and the JDK and ant bin directories on the PATH
+it is not necessary to set the environment as described in
+the samples directory README.  If your environment is not
+properly configured, or if you are planning on using wsdl2java,
+javac, and java to build and run the demos, you must set the
+environment.
+
+some thirdparty jars needs:
+
+Spring script jars:
+* spring-aop-2.0.4.jar
+* spring-support-2.0.4.jar
+download from 
+http://repo1.maven.org/maven2/org/springframework/
+copy into $CXF_HOME/lib/
+
+Groovy jars:
+* groovy-1.0.jar
+* antlr-2.7.6.jar
+* asm-2.2.3.jar
+download from:
+http://repo1.maven.org/maven2/groovy/groovy/1.0/groovy-1.0.jar
+http://repo1.maven.org/maven2/antlr/antlr/2.7.6/antlr-2.7.6.jar
+http://repo1.maven.org/maven2/asm/asm/2.2.3/asm-2.2.3.jar
+copy into $CXF_HOME/samples/groovy_spring_support/lib
+
+Building and running the demo using Ant
+---------------------------------------
+From the base directory of this sample (i.e., where this README file is
+located), the Ant build.xml file can be used to build and run the demo. 
+The server and client targets automatically build the demo.
+
+Using either UNIX or Windows:
+
+  ant server  (from one command line window)
+  ant client  (from a second command line window)
+    
+
+To remove the code generated from the WSDL file and the .class
+files, run "ant clean".

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/build.xml?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/build.xml
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/build.xml
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,66 @@
+<?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 name="Groovy Spring demo" default="build" basedir=".">
+
+    <property name="maven.repo" value="http://repo1.maven.org/maven2"/>
+    <property name="spring.version" value="2.0.4"/>
+    <property name="groovy.version" value="1.0"/>
+    
+    <property name="spring-aop.jar" value="spring-aop-${spring.version}.jar"/>
+    <property name="spring-support.jar" value="spring-support-${spring.version}.jar"/>
+    <property name="spring-repo" value="${maven.repo}/org/springframework"/>
+
+    <property name="groovy-core.jar" value="groovy-${groovy.version}.jar" />
+    <property name="antlr.jar" value="antlr-2.7.6.jar" />
+    <property name="asm.jar" value="asm-2.2.3.jar" />
+    <property name="groovy-repo" value="${maven.repo}/groovy/groovy/1.0"/>
+
+    <property name="thirdparty.classpath" 
+	      value="../../lib/${spring-aop.jar}${path.separator}../../lib/${spring-support.jar}${path.separator}lib/${groovy-core.jar}${path.separator}lib/${antlr.jar}${path.separator}lib/${asm.jar}"/>
+
+    <import file="../common_build.xml"/>
+
+    <target name="get.dep" description="Get the thirdpaty jars">
+	<get src="${spring-repo}/spring-aop/${spring.version}/${spring-aop.jar}" dest="${cxf.home}/lib/${spring-aop.jar}"
usetimestamp="true"/>
+	<get src="${spring-repo}/spring-support/${spring.version}/${spring-support.jar}" dest="${cxf.home}/lib/${spring-support.jar}"
usetimestamp="true"/>
+
+	<mkdir dir="lib"/>
+	<get src="${groovy-repo}/${groovy-core.jar}" dest="lib/${groovy-core.jar}" usetimestamp="true"/>
+	<get src="${maven.repo}/antlr/antlr/2.7.6/${antlr.jar}" dest="lib/${antlr.jar}" usetimestamp="true"/>
+	<get src="${maven.repo}/asm/asm/2.2.3/${asm.jar}" dest="lib/${asm.jar}" usetimestamp="true"/>
+    </target>
+
+    <target name="client" description="run demo client" depends="build">
+        <property name="param" value=""/>
+        <cxfrun classname="demo.spring.client.Client" />
+    </target> 
+        
+    <target name="server" description="run demo server" depends="build">
+        <copy todir="build/classes/demo/spring">
+          <fileset dir="src/demo/spring" excludes="**/*.java"/>
+        </copy>
+        <cxfrun classname="demo.spring.servlet.Server"/>
+    </target>
+
+    <property name="cxf.war.file.name" value="spring_http"/>
+      <target name="war" depends="build">
+	  <cxfwar filename="${cxf.war.file.name}.war" webxml="webapp/WEB-INF/web.xml" />
+    </target>
+</project>

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.groovy
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.groovy?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.groovy
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.groovy
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,23 @@
+/**
+ * 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 demo.spring;
+
+public interface HelloWorld {
+    String sayHi(String text)
+}

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.java?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorld.java
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,28 @@
+/**
+ * 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.
+ */
+// START SNIPPET: service
+package demo.spring;
+
+import javax.jws.WebService;
+
+@WebService
+public interface HelloWorld {
+    String sayHi(String text);
+}
+// END SNIPPET: service

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorldImpl.groovy
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorldImpl.groovy?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorldImpl.groovy
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/HelloWorldImpl.groovy
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,26 @@
+/**
+ * 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 demo.spring;
+
+public class HelloWorldImpl implements HelloWorld {
+
+    public String sayHi(String text) {
+        return "Hello " + text
+    }
+}

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/Client.java?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/Client.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/Client.java
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,44 @@
+/**
+ * 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 demo.spring.client;
+
+
+import demo.spring.HelloWorld;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+
+public final class Client {
+
+    private Client() {
+    }
+
+    public static void main(String args[]) throws Exception {
+        // START SNIPPET: client
+        ClassPathXmlApplicationContext context 
+            = new ClassPathXmlApplicationContext(new String[] {"demo/spring/client/client-beans.xml"});
+
+        HelloWorld client = (HelloWorld)context.getBean("client");
+
+        String response = client.sayHi("Joe");
+        System.out.println("Response: " + response);
+        System.exit(0);
+        // END SNIPPET: client
+    }
+}

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/client-beans.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/client-beans.xml?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/client-beans.xml
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/client/client-beans.xml
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,37 @@
+<?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.
+-->
+<!-- START SNIPPET: beans -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:simple="http://cxf.apache.org/simple"
+	xsi:schemaLocation="
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd">
+
+    <bean id="client" class="demo.spring.HelloWorld" 
+      factory-bean="clientFactory" factory-method="create"/>
+    
+	<bean id="clientFactory" class="org.apache.cxf.frontend.ClientProxyFactoryBean">
+	  <property name="serviceClass" value="demo.spring.HelloWorld"/>
+	  <property name="address" value="http://localhost:9002/HelloWorld"/>
+	</bean>
+	  
+</beans>
+<!-- END SNIPPET: beans -->
\ No newline at end of file

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/servlet/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/servlet/Server.java?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/servlet/Server.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/src/demo/spring/servlet/Server.java
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,64 @@
+/**
+ * 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 demo.spring.servlet;
+
+import org.mortbay.jetty.Connector;
+import org.mortbay.jetty.Handler;
+import org.mortbay.jetty.handler.DefaultHandler;
+import org.mortbay.jetty.handler.HandlerCollection;
+import org.mortbay.jetty.nio.SelectChannelConnector;
+import org.mortbay.jetty.webapp.WebAppContext;
+
+public class Server {
+
+    protected Server() throws Exception {
+        System.out.println("Starting Server");
+
+        /**
+         * Important: This code simply starts up a servlet container and adds
+         * the web application in src/webapp to it. Normally you would be using
+         * Jetty or Tomcat and have the webapp packaged as a WAR. This is simply
+         * as a convenience so you do not need to configure your servlet
+         * container to see CXF in action!
+         */
+        org.mortbay.jetty.Server server = new org.mortbay.jetty.Server();
+
+        SelectChannelConnector connector = new SelectChannelConnector();
+        connector.setPort(9002);
+        server.setConnectors(new Connector[] {connector});
+
+        WebAppContext webappcontext = new WebAppContext();
+        webappcontext.setContextPath("/");
+
+        webappcontext.setWar("webapp");
+
+        HandlerCollection handlers = new HandlerCollection();
+        handlers.setHandlers(new Handler[] {webappcontext, new DefaultHandler()});
+
+        server.setHandler(handlers);
+        server.start();
+        System.out.println("Server ready...");
+        server.join();
+    }
+
+    public static void main(String args[]) throws Exception {
+        new Server();
+    }
+
+}

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/beans-groovy.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/beans-groovy.xml?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/beans-groovy.xml
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/beans-groovy.xml
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,47 @@
+<?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.
+-->
+<!-- START SNIPPET: beans -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:simple="http://cxf.apache.org/simple"
+	xmlns:lang="http://www.springframework.org/schema/lang"
+	xsi:schemaLocation="
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.0.xsd
+http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd">
+
+	<import resource="classpath:META-INF/cxf/cxf.xml" />
+	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
+
+<lang:groovy id="helloworld" script-source="classpath:demo/spring/HelloWorld.groovy" scope="prototype">
+</lang:groovy>
+<lang:groovy id="helloworldImpl" script-source="classpath:demo/spring/HelloWorldImpl.groovy"
scope="prototype">
+</lang:groovy>
+
+  <simple:server serviceClass="demo.spring.HelloWorld"  address="/HelloWorld">
+
+    <simple:serviceBean>
+      <ref bean="helloworldImpl" />
+    </simple:serviceBean>
+  </simple:server>
+  
+</beans>
+<!-- END SNIPPET: beans -->

Added: incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/web.xml?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/web.xml
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/groovy_spring_support/webapp/WEB-INF/web.xml
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<!--
+	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.
+-->
+<!-- START SNIPPET: webxml -->
+<web-app>
+	<context-param>
+		<param-name>contextConfigLocation</param-name>
+		<param-value>WEB-INF/beans-groovy.xml</param-value>
+	</context-param>
+
+	<listener>
+		<listener-class>
+			org.springframework.web.context.ContextLoaderListener
+		</listener-class>
+	</listener>
+
+	<servlet>
+		<servlet-name>CXFServlet</servlet-name>
+		<display-name>CXF Servlet</display-name>
+		<servlet-class>
+			org.apache.cxf.transport.servlet.CXFServlet
+		</servlet-class>
+		<load-on-startup>1</load-on-startup>
+	</servlet>
+
+	<servlet-mapping>
+		<servlet-name>CXFServlet</servlet-name>
+		<url-pattern>/*</url-pattern>
+	</servlet-mapping>
+</web-app>
+<!-- END SNIPPET: webxml -->
\ No newline at end of file

Added: incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/README.txt?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/README.txt
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/README.txt
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,53 @@
+Ruby script demo
+=============================================
+This example will lead you through creating ruby  web service 
+implement with Spring. You'll learn how to:
+
+    * Writing a simple ruby script web service
+
+For more information see the documentation for this example in the
+user's guide.
+
+
+Prerequisite
+------------
+
+If your environment already includes cxf-manifest-incubator.jar on the
+CLASSPATH, and the JDK and ant bin directories on the PATH
+it is not necessary to set the environment as described in
+the samples directory README.  If your environment is not
+properly configured, or if you are planning on using wsdl2java,
+javac, and java to build and run the demos, you must set the
+environment.
+
+some thirdparty jars needs:
+
+Spring script jars:
+* spring-aop-2.0.4.jar
+* spring-support-2.0.4.jar
+download from 
+http://repo1.maven.org/maven2/org/springframework/
+copy into $CXF_HOME/lib/
+
+Groovy jars:
+* jruby-0.9.8.jar
+* cglib-nodep-2.1_3.jar
+download from:
+http://repo1.maven.org/maven2/jruby/jruby/0.9.8/jruby-0.9.8.jar
+http://repo1.maven.org/maven2/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar
+copy into $CXF_HOME/samples/ruby_spring_support/lib
+
+Building and running the demo using Ant
+---------------------------------------
+From the base directory of this sample (i.e., where this README file is
+located), the Ant build.xml file can be used to build and run the demo. 
+The server and client targets automatically build the demo.
+
+Using either UNIX or Windows:
+
+  ant server  (from one command line window)
+  ant client  (from a second command line window)
+    
+
+To remove the code generated from the WSDL file and the .class
+files, run "ant clean".

Added: incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/build.xml?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/build.xml
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/build.xml
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,62 @@
+<?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 name="Spring HTTP Servlet demo" default="build" basedir=".">
+
+    <property name="maven.repo" value="http://repo1.maven.org/maven2"/>
+    <property name="spring.version" value="2.0.4"/>
+    
+    <property name="spring-aop.jar" value="spring-aop-${spring.version}.jar"/>
+    <property name="spring-support.jar" value="spring-support-${spring.version}.jar"/>
+    <property name="spring-repo" value="${maven.repo}/org/springframework"/>
+
+    <property name="jruby.jar" value="jruby-0.9.8.jar"/>
+    <property name="cglib.jar" value="cglib-nodep-2.1_3.jar"/>
+
+    <property name="thirdparty.classpath" 
+	      value="../../lib/${spring-aop.jar}${path.separator}../../lib/${spring-support.jar}${path.separator}lib/${jruby.jar}${path.separator}lib/${cglib.jar}"/>
+
+    <import file="../common_build.xml"/>
+
+    <target name="get.dep" description="Get the thirdpaty jars">
+	<get src="${spring-repo}/spring-aop/${spring.version}/${spring-aop.jar}" dest="${cxf.home}/lib/${spring-aop.jar}"
usetimestamp="true"/>
+	<get src="${spring-repo}/spring-support/${spring.version}/${spring-support.jar}" dest="${cxf.home}/lib/${spring-support.jar}"
usetimestamp="true"/>
+
+	<mkdir dir="lib"/>
+	<get src="${maven.repo}/jruby/jruby/0.9.8/${jruby.jar}" dest="lib/${jruby.jar}" usetimestamp="true"/>
+	<get src="${maven.repo}/cglib/cglib-nodep/2.1_3/${cglib.jar}" dest="lib/${cglib.jar}"
usetimestamp="true"/>
+    </target>
+
+    <target name="client" description="run demo client" depends="build">
+        <property name="param" value=""/>
+        <cxfrun classname="demo.spring.client.Client" />
+    </target> 
+        
+    <target name="server" description="run demo server" depends="build">
+        <copy todir="build/classes/demo/spring">
+          <fileset dir="src/demo/spring" excludes="**/*.java"/>
+        </copy>
+        <cxfrun classname="demo.spring.servlet.Server"/>
+    </target>
+
+    <property name="cxf.war.file.name" value="spring_http"/>
+      <target name="war" depends="build">
+	  <cxfwar filename="${cxf.war.file.name}.war" webxml="webapp/WEB-INF/web.xml" />
+    </target>
+</project>

Added: incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorld.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorld.java?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorld.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorld.java
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,28 @@
+/**
+ * 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.
+ */
+// START SNIPPET: service
+package demo.spring;
+
+import javax.jws.WebService;
+
+@WebService
+public interface HelloWorld {
+    String sayHi(String text);
+}
+// END SNIPPET: service

Added: incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorldImpl.rb
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorldImpl.rb?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorldImpl.rb
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/HelloWorldImpl.rb
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,14 @@
+
+require 'java'
+
+include_class 'demo.spring.HelloWorld'
+
+class HelloWorldImpl
+  
+  def sayHi(message)
+    return  "Hello " + message
+  end
+
+end
+
+HelloWorldImpl.new
\ No newline at end of file

Added: incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/Client.java?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/Client.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/Client.java
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,44 @@
+/**
+ * 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 demo.spring.client;
+
+
+import demo.spring.HelloWorld;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+
+public final class Client {
+
+    private Client() {
+    }
+
+    public static void main(String args[]) throws Exception {
+        // START SNIPPET: client
+        ClassPathXmlApplicationContext context 
+            = new ClassPathXmlApplicationContext(new String[] {"demo/spring/client/client-beans.xml"});
+
+        HelloWorld client = (HelloWorld)context.getBean("client");
+
+        String response = client.sayHi("Joe");
+        System.out.println("Response: " + response);
+        System.exit(0);
+        // END SNIPPET: client
+    }
+}

Added: incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/client-beans.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/client-beans.xml?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/client-beans.xml
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/client/client-beans.xml
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,37 @@
+<?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.
+-->
+<!-- START SNIPPET: beans -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:simple="http://cxf.apache.org/simple"
+	xsi:schemaLocation="
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd">
+
+    <bean id="client" class="demo.spring.HelloWorld" 
+      factory-bean="clientFactory" factory-method="create"/>
+    
+	<bean id="clientFactory" class="org.apache.cxf.frontend.ClientProxyFactoryBean">
+	  <property name="serviceClass" value="demo.spring.HelloWorld"/>
+	  <property name="address" value="http://localhost:9002/HelloWorld"/>
+	</bean>
+	  
+</beans>
+<!-- END SNIPPET: beans -->

Added: incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/servlet/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/servlet/Server.java?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/servlet/Server.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/src/demo/spring/servlet/Server.java
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,64 @@
+/**
+ * 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 demo.spring.servlet;
+
+import org.mortbay.jetty.Connector;
+import org.mortbay.jetty.Handler;
+import org.mortbay.jetty.handler.DefaultHandler;
+import org.mortbay.jetty.handler.HandlerCollection;
+import org.mortbay.jetty.nio.SelectChannelConnector;
+import org.mortbay.jetty.webapp.WebAppContext;
+
+public class Server {
+
+    protected Server() throws Exception {
+        System.out.println("Starting Server");
+
+        /**
+         * Important: This code simply starts up a servlet container and adds
+         * the web application in src/webapp to it. Normally you would be using
+         * Jetty or Tomcat and have the webapp packaged as a WAR. This is simply
+         * as a convenience so you do not need to configure your servlet
+         * container to see CXF in action!
+         */
+        org.mortbay.jetty.Server server = new org.mortbay.jetty.Server();
+
+        SelectChannelConnector connector = new SelectChannelConnector();
+        connector.setPort(9002);
+        server.setConnectors(new Connector[] {connector});
+
+        WebAppContext webappcontext = new WebAppContext();
+        webappcontext.setContextPath("/");
+
+        webappcontext.setWar("webapp");
+
+        HandlerCollection handlers = new HandlerCollection();
+        handlers.setHandlers(new Handler[] {webappcontext, new DefaultHandler()});
+
+        server.setHandler(handlers);
+        server.start();
+        System.out.println("Server ready...");
+        server.join();
+    }
+
+    public static void main(String args[]) throws Exception {
+        new Server();
+    }
+
+}

Added: incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/beans-ruby.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/beans-ruby.xml?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/beans-ruby.xml
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/beans-ruby.xml
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,45 @@
+<?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.
+-->
+<!-- START SNIPPET: beans -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:simple="http://cxf.apache.org/simple"
+	xmlns:lang="http://www.springframework.org/schema/lang"
+	xsi:schemaLocation="
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.0.xsd
+http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd">
+
+	<import resource="classpath:META-INF/cxf/cxf.xml" />
+	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
+
+<lang:jruby id="helloworldImpl" script-source="classpath:demo/spring/HelloWorldImpl.rb"
script-interfaces="demo.spring.HelloWorld" scope="prototype">
+</lang:jruby>
+
+  <simple:server id="pojoservice"  serviceClass="demo.spring.HelloWorld"  address="/HelloWorld">
+
+  	<simple:serviceBean>
+  		<ref bean="helloworldImpl" />
+  	</simple:serviceBean>
+  </simple:server>
+  
+</beans>
+<!-- END SNIPPET: beans -->

Added: incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/web.xml?rev=572495&view=auto
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/web.xml
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/ruby_spring_support/webapp/WEB-INF/web.xml
Mon Sep  3 19:42:22 2007
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<!--
+	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.
+-->
+<!-- START SNIPPET: webxml -->
+<web-app>
+	<context-param>
+		<param-name>contextConfigLocation</param-name>
+		<param-value>WEB-INF/beans-ruby.xml</param-value>
+	</context-param>
+
+	<listener>
+		<listener-class>
+			org.springframework.web.context.ContextLoaderListener
+		</listener-class>
+	</listener>
+
+	<servlet>
+		<servlet-name>CXFServlet</servlet-name>
+		<display-name>CXF Servlet</display-name>
+		<servlet-class>
+			org.apache.cxf.transport.servlet.CXFServlet
+		</servlet-class>
+		<load-on-startup>1</load-on-startup>
+	</servlet>
+
+	<servlet-mapping>
+		<servlet-name>CXFServlet</servlet-name>
+		<url-pattern>/*</url-pattern>
+	</servlet-mapping>
+</web-app>
+<!-- END SNIPPET: webxml -->
\ No newline at end of file



Mime
View raw message