Author: bimargulies
Date: Wed Dec 10 04:45:35 2008
New Revision: 725071
URL: http://svn.apache.org/viewvc?rev=725071&view=rev
Log:
Give Aegis a sample of its own. This is the first of several to come.
Added:
cxf/trunk/distribution/src/main/release/samples/aegis/
cxf/trunk/distribution/src/main/release/samples/aegis/README.txt (with
props)
cxf/trunk/distribution/src/main/release/samples/aegis/build.xml (with
props)
cxf/trunk/distribution/src/main/release/samples/aegis/pom.xml (with props)
cxf/trunk/distribution/src/main/release/samples/aegis/src/
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/client/
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/client/Client.java
(with props)
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.aegis.xml
(with props)
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.java
(with props)
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorldImpl.java
(with props)
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/Server.java
(with props)
cxf/trunk/distribution/src/main/release/samples/aegis/wsdl/
cxf/trunk/distribution/src/main/release/samples/aegis/wsdl/cxf-servlet.xml
(with props)
Added: cxf/trunk/distribution/src/main/release/samples/aegis/README.txt
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis/README.txt?rev=725071&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis/README.txt (added)
+++ cxf/trunk/distribution/src/main/release/samples/aegis/README.txt Wed Dec 10
04:45:35 2008
@@ -0,0 +1,143 @@
+Aegis Demo
+====================
+
+This demo illustrates how to develop a service use the "code first", pojo
based.
+This demo uses the Aegis data binding.
+
+Prerequisite
+------------
+
+If your environment already includes cxf-manifest.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.
+
+
+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"
+
+Building and running the demo using Maven
+---------------------------------------
+
+From the base directory of this sample (i.e., where this README file is
+located), the pom.xml file is used to build and run the demo.
+
+Using either UNIX or Windows:
+
+ mvn install (builds the demo)
+ mvn -Pserver (from one command line window)
+ mvn -Pclient (from a second command line window)
+
+
+To remove the code generated from the WSDL file and the .class
+files, run "mvn clean".
+
+
+Building the demo using javac
+------------------------------
+
+From the base directory of this sample (i.e., where this README file is
+located), first create the target directory build/classes:
+
+For UNIX:
+ mkdir -p build/classes
+
+For Windows:
+ mkdir build\classes
+ Must use back slashes.
+
+Now compile the provided client and server applications with the commands:
+
+For UNIX:
+
+ export CLASSPATH=$CLASSPATH:$CXF_HOME/lib/cxf-manifest.jar:./build/classes
+ javac -d build/classes src/demo/hw/client/*.java
+ javac -d build/classes src/demo/hw/server/*.java
+
+For Windows:
+ set classpath=%classpath%;%CXF_HOME%\lib\cxf-manifest.jar;.\build\classes
+ javac -d build\classes src\demo\hw\client\*.java
+ javac -d build\classes src\demo\hw\server\*.java
+
+
+Running the demo using java
+---------------------------
+
+From the base directory of this sample (i.e., where this README file is
+located) run the commands, entered on a single command line:
+
+For UNIX (must use forward slashes):
+ java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+ demo.hw.server.Server &
+
+ java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+ demo.hw.client.Client
+
+The server process starts in the background. After running the client,
+use the kill command to terminate the server process.
+
+For Windows (may use either forward or back slashes):
+ start
+ java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+ demo.hw.server.Server
+
+ java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+ demo.hw.client.Client
+
+A new command windows opens for the server process. After running the
+client, terminate the server process by issuing Ctrl-C in its command window.
+
+To remove the code generated from the WSDL file and the .class
+files, either delete the build directory and its contents or run:
+
+ ant clean
+
+
+Building and running the demo in a servlet container
+----------------------------------------------------
+
+Please refer to samples directory README for building demo in a servlet
container.
+
+Using ant, run the client application with the command:
+
+ ant client-servlet -Dbase.url=http://localhost:#
+
+Where # is the TCP/IP port used by the servlet container,
+e.g., 8080.
+
+Or
+ ant client-servlet -Dhost=localhost -Dport=8080
+
+You can ignore the -Dhost and -Dport if your tomcat setup is same, i.e ant
client-servlet
+
+Using java, run the client application with the command:
+
+ For UNIX:
+
+ java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+ demo.hw.client.Client
http://localhost:#/helloworld/services/hello_world
+
+ For Windows:
+
+ java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+ demo.hw.client.Client http://localhost:#/helloworld/services/hello_world
+
+Where # is the TCP/IP port used by the servlet container,
+e.g., 8080.
+
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis/README.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: cxf/trunk/distribution/src/main/release/samples/aegis/build.xml
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis/build.xml?rev=725071&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis/build.xml (added)
+++ cxf/trunk/distribution/src/main/release/samples/aegis/build.xml Wed Dec 10
04:45:35 2008
@@ -0,0 +1,42 @@
+<?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="aegis" default="build" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <target name="client" description="run demo client" depends="build">
+ <property name="param" value=""/>
+ <cxfrun classname="demo.hw.client.Client"/>
+ </target>
+
+ <target name="server" description="run demo server" depends="build">
+ <cxfrun classname="demo.hw.server.Server"/>
+ </target>
+
+ <property name="cxf.war.file.name" value="helloworld"/>
+ <target name="war" depends="build">
+ <cxfwar filename="${cxf.war.file.name}.war"/>
+ </target>
+
+ <target name="client-servlet" description="run demo client hitting
servlet" depends="build">
+ <property name="param" value=""/>
+ <cxfrun classname="demo.hw.client.Client"
param1="${base.url}/helloworld/services/hello_world" param2="${op}"
param3="${param}"/>
+ </target>
+</project>
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: cxf/trunk/distribution/src/main/release/samples/aegis/pom.xml
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis/pom.xml?rev=725071&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis/pom.xml (added)
+++ cxf/trunk/distribution/src/main/release/samples/aegis/pom.xml Wed Dec 10
04:45:35 2008
@@ -0,0 +1,133 @@
+<?xml version="1.0"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.cxf.samples</groupId>
+ <artifactId>aegis</artifactId>
+ <version>1.0</version>
+ <properties>
+ <cxf.version>[2,)</cxf.version>
+ </properties>
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>server</id>
+ <build>
+ <defaultGoal>test</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+
<mainClass>demo.hw.server.Server</mainClass>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>client</id>
+ <build>
+ <defaultGoal>test</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+
<mainClass>demo.hw.client.Client</mainClass>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>snapshots</id>
+ <repositories>
+ <repository>
+ <id>apache-snapshots</id>
+ <name>Apache SNAPSHOT Repository</name>
+
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <!-- for jaxb-impl -->
+ <repository>
+ <id>java.net</id>
+ <url>http://download.java.net/maven/1/</url>
+ <layout>legacy</layout>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>apache-plugin-snapshots</id>
+ <name>Apache Maven Plugin Snapshots</name>
+
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ </profiles>
+ <repositories>
+ <!-- for jaxb-impl -->
+ <repository>
+ <id>java.net</id>
+ <url>http://download.java.net/maven/1/</url>
+ <layout>legacy</layout>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-frontend-jaxws</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-databinding-aegis</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-http</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+ <!-- Jetty is needed if you're using the CXFServlet -->
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-http-jetty</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+ </dependencies>
+</project>
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/client/Client.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/client/Client.java?rev=725071&view=auto
==============================================================================
---
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/client/Client.java
(added)
+++
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/client/Client.java
Wed Dec 10 04:45:35 2008
@@ -0,0 +1,46 @@
+/**
+ * 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.hw.client;
+
+import demo.hw.server.HelloWorld;
+import org.apache.cxf.aegis.databinding.AegisDatabinding;
+import org.apache.cxf.frontend.ClientProxyFactoryBean;
+
+public final class Client {
+
+ private Client() {
+ }
+
+ public static void main(String args[]) throws Exception {
+ ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
+ factory.setServiceClass(HelloWorld.class);
+ if (args != null && args.length > 0 && !"".equals(args[0])) {
+ factory.setAddress(args[0]);
+ } else {
+ factory.setAddress("http://localhost:9000/Hello");
+ }
+ factory.getServiceFactory().setDataBinding(new AegisDatabinding());
+ HelloWorld client = (HelloWorld)factory.create();
+ System.out.println("Invoke sayHi()....");
+ System.out.println(client.sayHi(System.getProperty("user.name")));
+ System.exit(0);
+ }
+
+}
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/client/Client.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/client/Client.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.aegis.xml
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.aegis.xml?rev=725071&view=auto
==============================================================================
---
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.aegis.xml
(added)
+++
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.aegis.xml
Wed Dec 10 04:45:35 2008
@@ -0,0 +1,26 @@
+<?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.
+-->
+<mappings>
+ <mapping name="HelloWorld">
+ <method name="sayHi">
+ <parameter index="0" name="greeting" nillable='false' />
+ </method>
+ </mapping>
+</mappings>
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.aegis.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.aegis.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.aegis.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.java?rev=725071&view=auto
==============================================================================
---
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.java
(added)
+++
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.java
Wed Dec 10 04:45:35 2008
@@ -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.hw.server;
+
+public interface HelloWorld {
+
+ String sayHi(String text);
+
+}
+
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorld.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorldImpl.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorldImpl.java?rev=725071&view=auto
==============================================================================
---
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorldImpl.java
(added)
+++
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorldImpl.java
Wed Dec 10 04:45:35 2008
@@ -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.
+ */
+package demo.hw.server;
+
+public class HelloWorldImpl implements HelloWorld {
+
+ public String sayHi(String text) {
+ System.out.println("sayHi called");
+ return "Hello " + text;
+ }
+}
+
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorldImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/HelloWorldImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/Server.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/Server.java?rev=725071&view=auto
==============================================================================
---
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/Server.java
(added)
+++
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/Server.java
Wed Dec 10 04:45:35 2008
@@ -0,0 +1,45 @@
+/**
+ * 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.hw.server;
+
+import org.apache.cxf.aegis.databinding.AegisDatabinding;
+import org.apache.cxf.frontend.ServerFactoryBean;
+
+public class Server {
+
+ protected Server() throws Exception {
+ HelloWorldImpl helloworldImpl = new HelloWorldImpl();
+ ServerFactoryBean svrFactory = new ServerFactoryBean();
+ svrFactory.setServiceClass(HelloWorld.class);
+ svrFactory.setAddress("http://localhost:9000/Hello");
+ svrFactory.setServiceBean(helloworldImpl);
+ svrFactory.getServiceFactory().setDataBinding(new AegisDatabinding());
+ svrFactory.create();
+ }
+
+ public static void main(String args[]) throws Exception {
+ new Server();
+ System.out.println("Server ready...");
+
+ Thread.sleep(5 * 60 * 1000);
+ System.out.println("Server exiting");
+ System.exit(0);
+ }
+}
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/Server.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/src/demo/hw/server/Server.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
cxf/trunk/distribution/src/main/release/samples/aegis/wsdl/cxf-servlet.xml
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis/wsdl/cxf-servlet.xml?rev=725071&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis/wsdl/cxf-servlet.xml
(added)
+++ cxf/trunk/distribution/src/main/release/samples/aegis/wsdl/cxf-servlet.xml
Wed Dec 10 04:45:35 2008
@@ -0,0 +1,34 @@
+<?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.
+-->
+<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:soap="http://cxf.apache.org/bindings/soap"
+ xsi:schemaLocation="
+http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+http://cxf.apache.org/bindings/soap
http://cxf.apache.org/schemas/configuration/soap.xsd
+http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd">
+
+ <simple:server id="pojoservice" serviceClass="demo.hw.server.HelloWorld"
address="/hello_world">
+ <simple:serviceBean>
+ <bean class="demo.hw.server.HelloWorldImpl" />
+ </simple:serviceBean>
+ </simple:server>
+</beans>
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/wsdl/cxf-servlet.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/wsdl/cxf-servlet.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
cxf/trunk/distribution/src/main/release/samples/aegis/wsdl/cxf-servlet.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml