You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by gm...@apache.org on 2012/03/21 18:39:32 UTC
svn commit: r1303476 - in /cxf/trunk/distribution/src/main/release/samples:
jms_pubsub/src/main/java/demo/jms_greeter/client/Client.java
jms_queue/src/main/java/demo/jms_greeter/client/Client.java sts/README.txt
ws_rm/README.txt
Author: gmazza
Date: Wed Mar 21 17:39:32 2012
New Revision: 1303476
URL: http://svn.apache.org/viewvc?rev=1303476&view=rev
Log:
Closing JMS client so the broker won't report an EOF exception; some updates to READMEs.
Modified:
cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/client/Client.java
cxf/trunk/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/client/Client.java
cxf/trunk/distribution/src/main/release/samples/sts/README.txt
cxf/trunk/distribution/src/main/release/samples/ws_rm/README.txt
Modified: cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/client/Client.java?rev=1303476&r1=1303475&r2=1303476&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/client/Client.java (original)
+++ cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/client/Client.java Wed Mar 21 17:39:32 2012
@@ -18,6 +18,7 @@
*/
package demo.jms_greeter.client;
+import java.io.Closeable;
import java.io.File;
import javax.xml.namespace.QName;
import org.apache.cxf.jms_greeter.JMSGreeterPortType;
@@ -50,6 +51,10 @@ public final class Client {
System.out.println("No response from server as method is OneWay");
System.out.println();
+ if (greeter instanceof Closeable) {
+ ((Closeable)greeter).close();
+ }
+
System.exit(0);
}
}
Modified: cxf/trunk/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/client/Client.java?rev=1303476&r1=1303475&r2=1303476&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/client/Client.java (original)
+++ cxf/trunk/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/client/Client.java Wed Mar 21 17:39:32 2012
@@ -19,6 +19,7 @@
package demo.jms_greeter.client;
+import java.io.Closeable;
import java.io.File;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
@@ -66,7 +67,7 @@ public final class Client {
greeter.greetMeOneWay(System.getProperty("user.name"));
System.out.println("No response from server as method is OneWay");
System.out.println();
-
+
// Demonstration of JMS Context usage
InvocationHandler handler = Proxy.getInvocationHandler(greeter);
@@ -113,10 +114,12 @@ public final class Client {
System.out.println("Failed to get the binding provider cannot access context info.");
System.exit(3);
}
-
-
System.out.println();
+ if (greeter instanceof Closeable) {
+ ((Closeable)greeter).close();
+ }
+
System.exit(0);
}
}
Modified: cxf/trunk/distribution/src/main/release/samples/sts/README.txt
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/sts/README.txt?rev=1303476&r1=1303475&r2=1303476&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/sts/README.txt (original)
+++ cxf/trunk/distribution/src/main/release/samples/sts/README.txt Wed Mar 21 17:39:32 2012
@@ -1,7 +1,7 @@
-SecurityTokenService (STS) Demo
-=================
+Security Token Service (STS) Demo
+=================================
-This demo shows how to use the SecurityTokenService (STS) implementation in
+This demo shows how to use the Security Token Service (STS) implementation in
Apache CXF.
The policy of the service provider, as defined in hello_world.wsdl, requires a
Modified: cxf/trunk/distribution/src/main/release/samples/ws_rm/README.txt
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_rm/README.txt?rev=1303476&r1=1303475&r2=1303476&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/ws_rm/README.txt (original)
+++ cxf/trunk/distribution/src/main/release/samples/ws_rm/README.txt Wed Mar 21 17:39:32 2012
@@ -46,24 +46,11 @@ WS-Addressing support is enabled for the
Please review the README in the samples directory before continuing.
-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
-run the environment script 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 by running the script.
-
-
Building and running the demo using Maven
-----------------------------------------
-
From the base directory of this sample (i.e., where this README file is
located), the maven pom.xml file can be used to build and run the demo.
-
Using either UNIX or Windows:
mvn install (builds the demo)
@@ -81,73 +68,3 @@ later so that there will be no further r
To remove the code generated from the WSDL file and the .class
files, run "mvn clean".
-
-
-Building the demo using wsdl2java and javac
--------------------------------------------
-
-From the base directory of this sample (i.e., where this README file is
-located) first create the target directory build/classes and then
-generate code from the WSDL file.
-
-
-For UNIX:
- mkdir -p build/classes
-
- wsdl2java -d build/classes -compile ./wsdl/hello_world_rm.wsdl
-
-For Windows:
- mkdir build\classes
- Must use back slashes.
-
- wsdl2java -d build\classes -compile .\wsdl\hello_world_rm.wsdl
- May use either forward or 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/ws_rm/common/*.java
- javac -d build/classes src/demo/ws_rm/client/*.java
- javac -d build/classes src/demo/ws_rm/server/*.java
-
-For Windows:
- set classpath=%classpath%;%CXF_HOME%\lib\cxf-manifest.jar;.\build\classes
- javac -d build\classes src\demo\ws_rm\common\*.java
- javac -d build\classes src\demo\ws_rm\client\*.java
- javac -d build\classes src\demo\ws_rm\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=./logging.properties
- demo.ws_rm.server.Server &
-
- java -Djava.util.logging.config.file=./logging.properties
- demo.ws_rm.client.Client ./wsdl/hello_world_rm.wsdl
-
-The server process starts in the background.
-
-For Windows (may use either forward or back slashes):
- start
- java -Djava.util.logging.config.file=.\logging.properties
- demo.ws_rm.server.Server
-
- java -Djava.util.logging.config.file=.\logging.properties
- demo.ws_rm.client.Client .\wsdl\hello_world_rm.wsdl
-
-The server process starts in a new command window.
-
-After running the client, terminate the server process.
-
-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
-