You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2018/04/11 10:02:18 UTC

[cxf] 02/02: Updating the build instructions and using the new LoggingFeature instead in one of the demos

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit c8cbd2af20631b59ef3f97f809dd715583be50da
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Wed Apr 11 11:01:48 2018 +0100

    Updating the build instructions and using the new LoggingFeature instead in one of the demos
---
 BUILDING.txt                                                        | 6 +++---
 distribution/src/main/release/samples/README.txt                    | 4 ++--
 .../main/release/samples/java_first_jaxws_factory_bean/README.txt   | 2 +-
 .../src/main/java/demo/hw/client/Client.java                        | 6 ++----
 .../src/main/java/demo/hw/server/Server.java                        | 6 ++----
 5 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/BUILDING.txt b/BUILDING.txt
index 83db63e..28eb184 100644
--- a/BUILDING.txt
+++ b/BUILDING.txt
@@ -22,13 +22,13 @@ Building
 
 1) Change to the top level directory of Apache CXF source distribution.
 2) Set the MAVEN_OPTS environment variable to include more memory
-   Unix/Linux/OSX   $> export MAVEN_OPTS="-XX:MaxPermSize=192m -Xmx768M"
-   Windows          > set MAVEN_OPTS="-XX:MaxPermSize=192m -Xmx768M"
+   Unix/Linux/OSX   $> export MAVEN_OPTS="-Xmx2048M"
+   Windows          > set MAVEN_OPTS="-Xmx2048M"
 3) Run
 	$> mvn
    This will compile Apache CXF and run all of the tests in the Apache CXF source
    distribution. Alternatively, you can run
-         $> mvn -Pfastinstall.
+    $> mvn -Pfastinstall.
    This will compile Apache CXF without running the tests and takes less
    time to build.
    Depending on the load of remote Maven repositories, you may have 
diff --git a/distribution/src/main/release/samples/README.txt b/distribution/src/main/release/samples/README.txt
index 2f49b88..c063b4c 100644
--- a/distribution/src/main/release/samples/README.txt
+++ b/distribution/src/main/release/samples/README.txt
@@ -7,11 +7,11 @@ under the root drive.  This creates the apache-cxf-x.x.x folder,
 which includes all of the product subdirectories.
 
 To build and run the demos, you must install the J2SE Development
-Kit (JDK) 5.0 or later.
+Kit (JDK) 1.8 or later.
 
 All of the samples (with the exception of the "antbuild" sample,
 which shows how to manage a project using Ant as the buildtool)
-are built using Apache Maven, version 2.2.x or 3.x.  You can 
+are built using Apache Maven, version 3.1 or newer.  You can 
 build the Mavenized samples all at once by running 
 "mvn clean install" from the samples root folder or by running
 the same command within individual sample folders.  For running
diff --git a/distribution/src/main/release/samples/java_first_jaxws_factory_bean/README.txt b/distribution/src/main/release/samples/java_first_jaxws_factory_bean/README.txt
index 17e009a..e38e01d 100644
--- a/distribution/src/main/release/samples/java_first_jaxws_factory_bean/README.txt
+++ b/distribution/src/main/release/samples/java_first_jaxws_factory_bean/README.txt
@@ -2,7 +2,7 @@ Java First demo using jax-ws APIs and jsr-181
 =============================================
 
 This demo illustrates how to develop a service using the JAXWSFactoryBeans.
-It also makes use of LoggingInterceptors.
+It also makes use of the LoggingFeature to log the messages.
 The demo takes the "code first" approach using JAX-WS APIs.
 
 Building and running the demo using Maven
diff --git a/distribution/src/main/release/samples/java_first_jaxws_factory_bean/src/main/java/demo/hw/client/Client.java b/distribution/src/main/release/samples/java_first_jaxws_factory_bean/src/main/java/demo/hw/client/Client.java
index 11a751f..2fa5cc9 100644
--- a/distribution/src/main/release/samples/java_first_jaxws_factory_bean/src/main/java/demo/hw/client/Client.java
+++ b/distribution/src/main/release/samples/java_first_jaxws_factory_bean/src/main/java/demo/hw/client/Client.java
@@ -20,8 +20,7 @@
 package demo.hw.client;
 
 
-import org.apache.cxf.interceptor.LoggingInInterceptor;
-import org.apache.cxf.interceptor.LoggingOutInterceptor;
+import org.apache.cxf.ext.logging.LoggingFeature;
 import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
 
 import demo.hw.server.HelloWorld;
@@ -33,8 +32,7 @@ public final class Client {
 
     public static void main(String args[]) throws Exception {
         JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
-        factory.getInInterceptors().add(new LoggingInInterceptor());
-        factory.getOutInterceptors().add(new LoggingOutInterceptor());
+        factory.getFeatures().add(new LoggingFeature());
         factory.setAddress("http://localhost:9000/helloWorld");
         HelloWorld client = factory.create(HelloWorld.class);
         System.out.println(client.sayHi("World"));
diff --git a/distribution/src/main/release/samples/java_first_jaxws_factory_bean/src/main/java/demo/hw/server/Server.java b/distribution/src/main/release/samples/java_first_jaxws_factory_bean/src/main/java/demo/hw/server/Server.java
index 1a0c6b6..10d9f5c 100644
--- a/distribution/src/main/release/samples/java_first_jaxws_factory_bean/src/main/java/demo/hw/server/Server.java
+++ b/distribution/src/main/release/samples/java_first_jaxws_factory_bean/src/main/java/demo/hw/server/Server.java
@@ -19,8 +19,7 @@
 
 package demo.hw.server;
 
-import org.apache.cxf.interceptor.LoggingInInterceptor;
-import org.apache.cxf.interceptor.LoggingOutInterceptor;
+import org.apache.cxf.ext.logging.LoggingFeature;
 import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
 
 public class Server {
@@ -32,8 +31,7 @@ public class Server {
         svrFactory.setServiceClass(HelloWorld.class);
         svrFactory.setAddress("http://localhost:9000/helloWorld");
         svrFactory.setServiceBean(implementor);
-        svrFactory.getInInterceptors().add(new LoggingInInterceptor());
-        svrFactory.getOutInterceptors().add(new LoggingOutInterceptor());
+        svrFactory.getFeatures().add(new LoggingFeature());
         svrFactory.create();
     }
 

-- 
To stop receiving notification emails like this one, please contact
coheigea@apache.org.