cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cxf git commit: CXF-7085: Introduce support for Server Sent Events (Client). Added SSE client sample. Included SSE module into distribution archive.
Date Sat, 22 Jul 2017 18:42:24 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 5700588bb -> 29b273dcc


CXF-7085: Introduce support for Server Sent Events (Client). Added SSE client sample. Included
SSE module into distribution archive.


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/29b273dc
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/29b273dc
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/29b273dc

Branch: refs/heads/master
Commit: 29b273dcc2aae9f67f9a886105245c3652b34594
Parents: 5700588
Author: reta <drreta@gmail.com>
Authored: Sat Jul 22 14:42:02 2017 -0400
Committer: reta <drreta@gmail.com>
Committed: Sat Jul 22 14:42:02 2017 -0400

----------------------------------------------------------------------
 distribution/pom.xml                            |   5 +
 .../release/samples/jax_rs/sse_cdi/README.txt   |   2 +-
 .../samples/jax_rs/sse_client/README.txt        |  30 +++++
 .../release/samples/jax_rs/sse_client/pom.xml   | 134 +++++++++++++++++++
 .../src/main/java/demo/jaxrs/sse/Stats.java     |  56 ++++++++
 .../main/java/demo/jaxrs/sse/StatsClient.java   |  51 +++++++
 .../demo/jaxrs/sse/StatsRestServiceImpl.java    |  82 ++++++++++++
 .../main/java/demo/jaxrs/sse/StatsServer.java   |  71 ++++++++++
 .../META-INF/cxf/org.apache.cxf.Logger          |   1 +
 .../sse_client/src/main/resources/logback.xml   |  12 ++
 distribution/src/main/release/samples/pom.xml   |   1 +
 11 files changed, 444 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/distribution/pom.xml b/distribution/pom.xml
index 37dc2cf..68f85ef 100644
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -306,6 +306,11 @@
         </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
+            <artifactId>cxf-rt-rs-sse</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
             <artifactId>cxf-rt-javascript</artifactId>
             <version>${project.version}</version>
         </dependency>

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/jax_rs/sse_cdi/README.txt
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/sse_cdi/README.txt b/distribution/src/main/release/samples/jax_rs/sse_cdi/README.txt
index 7255d9a..27c3003 100644
--- a/distribution/src/main/release/samples/jax_rs/sse_cdi/README.txt
+++ b/distribution/src/main/release/samples/jax_rs/sse_cdi/README.txt
@@ -1,7 +1,7 @@
 JAX-RS SSE Demo 
 =================
 
-This is a SSE version of JAX-RS Basic Demo using CDI.
+This is a SSE broadcaster version of JAX-RS Basic Demo using CDI.
 
 A SSE endpoint service is provided on URL http://localhost:8686/rest/api/stats/sse which
 is broadcasting the SSE events to all subscribers (using RxJava 2 and SseBroadcaster).

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/jax_rs/sse_client/README.txt
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/sse_client/README.txt b/distribution/src/main/release/samples/jax_rs/sse_client/README.txt
new file mode 100644
index 0000000..6dbd071
--- /dev/null
+++ b/distribution/src/main/release/samples/jax_rs/sse_client/README.txt
@@ -0,0 +1,30 @@
+JAX-RS SSE Demo 
+=================
+
+This is a SSE client version of JAX-RS Basic Demo.
+
+A SSE endpoint service is provided on URL http://localhost:8686/rest/stats/sse, f.e.:
+
+  http://localhost:8686/rest/stats/sse
+
+Under the hood, embedded Tomcat 8.5 container is being used. The client is a simple 
+SSE EventSource consumer which prints each event received in the console. 
+
+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
+  mvn -Pserver
+  mvn -Pclient
+
+To remove the target dir, run "mvn clean".  
+
+Connecting to the SSE stream
+---------------------------------------
+
+Open a web browser at: http://localhost:8686/static/index.html 

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/jax_rs/sse_client/pom.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/sse_client/pom.xml b/distribution/src/main/release/samples/jax_rs/sse_client/pom.xml
new file mode 100644
index 0000000..410f6fe
--- /dev/null
+++ b/distribution/src/main/release/samples/jax_rs/sse_client/pom.xml
@@ -0,0 +1,134 @@
+<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/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <name>JAX-RS SSE Client Demo (Tomcat 8)</name>
+    <description>JAX-RS SSE Client  Demo (Tomcat 8)</description>
+    <artifactId>jax_rs_sse_client</artifactId>
+
+    <parent>
+        <groupId>org.apache.cxf.samples</groupId>
+        <artifactId>cxf-samples</artifactId>
+        <version>3.2.0-SNAPSHOT</version>
+        <relativePath>../..</relativePath>
+    </parent>
+    
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <cxf.tomcat.version>8.5.16</cxf.tomcat.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-frontend-jaxrs</artifactId>
+            <version>3.2.0-SNAPSHOT</version>
+        </dependency>
+ 
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-rs-client</artifactId>
+            <version>3.2.0-SNAPSHOT</version>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-rs-sse</artifactId>
+            <version>3.2.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.fasterxml.jackson.jaxrs</groupId>
+            <artifactId>jackson-jaxrs-json-provider</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-core</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tomcat.embed</groupId>
+            <artifactId>tomcat-embed-core</artifactId>
+            <version>${cxf.tomcat.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tomcat.embed</groupId>
+            <artifactId>tomcat-embed-jasper</artifactId>
+            <version>${cxf.tomcat.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tomcat.embed</groupId>
+            <artifactId>tomcat-embed-websocket</artifactId>
+            <version>${cxf.tomcat.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.atmosphere</groupId>
+            <artifactId>atmosphere-runtime</artifactId>
+        </dependency>
+    </dependencies>
+    
+    <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.jaxrs.sse.StatsServer</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.jaxrs.sse.StatsClient</mainClass>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.8</source>
+                    <target>1.8</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/Stats.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/Stats.java
b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/Stats.java
new file mode 100644
index 0000000..95f7619
--- /dev/null
+++ b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/Stats.java
@@ -0,0 +1,56 @@
+/**
+ * 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.jaxrs.sse;
+
+import java.io.Serializable;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+
+@JsonInclude(value = Include.NON_NULL)
+public class Stats implements Serializable {
+    private static final long serialVersionUID = -6705829915457870975L;
+
+    private long timestamp;
+    private int load;
+
+    public Stats() {
+    }
+
+    public Stats(long timestamp, int load) {
+        this.timestamp = timestamp;
+        this.load = load;
+    }
+
+    public long getTimestamp() {
+        return timestamp;
+    }
+
+    public void setTimestamp(long timestamp) {
+        this.timestamp = timestamp;
+    }
+
+    public int getLoad() {
+        return load;
+    }
+
+    public void setLoad(int load) {
+        this.load = load;
+    }
+}

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsClient.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsClient.java
b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsClient.java
new file mode 100644
index 0000000..a028dde
--- /dev/null
+++ b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsClient.java
@@ -0,0 +1,51 @@
+/**
+ * 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.jaxrs.sse;
+
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.sse.InboundSseEvent;
+import javax.ws.rs.sse.SseEventSource;
+
+import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
+
+public final class StatsClient {
+    private StatsClient() {
+    }
+    
+    public static void main(String[] args) throws InterruptedException {
+        final WebTarget target = ClientBuilder
+            .newClient()
+            .register(JacksonJsonProvider.class)
+            .target("http://localhost:8686/rest/stats/sse");
+        
+        try (final SseEventSource eventSource = SseEventSource.target(target).build()) {
+            eventSource.register(StatsClient::print, System.out::println);
+            eventSource.open();
+            // Give the SSE stream 5 seconds to collect all events
+            Thread.sleep(5000);
+        }
+    }
+
+    private static void print(InboundSseEvent event) {
+        final Stats stats = event.readData(Stats.class, MediaType.APPLICATION_JSON_TYPE);
+        System.out.println(stats.getTimestamp() + ": " + stats.getLoad() + "%");
+    }
+}

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsRestServiceImpl.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsRestServiceImpl.java
b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsRestServiceImpl.java
new file mode 100644
index 0000000..17649e1
--- /dev/null
+++ b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsRestServiceImpl.java
@@ -0,0 +1,82 @@
+/**
+ * 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.jaxrs.sse;
+
+import java.util.Date;
+import java.util.Random;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.sse.OutboundSseEvent;
+import javax.ws.rs.sse.OutboundSseEvent.Builder;
+import javax.ws.rs.sse.Sse;
+import javax.ws.rs.sse.SseEventSink;
+
+@Path("/stats")
+public class StatsRestServiceImpl {
+    private static final Random RANDOM = new Random();
+    private Sse sse;
+
+    @Context 
+    public void setSse(Sse sse) {
+        this.sse = sse;
+    }
+
+    @GET
+    @Path("sse")
+    @Produces(MediaType.SERVER_SENT_EVENTS)
+    public void stats(@Context SseEventSink sink) {
+        new Thread() {
+            public void run() {
+                try {
+                    final Builder builder = sse.newEventBuilder();
+                    sink.send(createStatsEvent(builder.name("stats"), 1));
+                    Thread.sleep(500);
+                    sink.send(createStatsEvent(builder.name("stats"), 2));
+                    Thread.sleep(500);
+                    sink.send(createStatsEvent(builder.name("stats"), 3));
+                    Thread.sleep(500);
+                    sink.send(createStatsEvent(builder.name("stats"), 4));
+                    Thread.sleep(500);
+                    sink.send(createStatsEvent(builder.name("stats"), 5));
+                    Thread.sleep(500);
+                    sink.send(createStatsEvent(builder.name("stats"), 6));
+                    Thread.sleep(500);
+                    sink.send(createStatsEvent(builder.name("stats"), 7));
+                    Thread.sleep(500);
+                    sink.send(createStatsEvent(builder.name("stats"), 8));
+                    sink.close();
+                } catch (final Exception e) {
+                    e.printStackTrace();
+                }
+            }
+        }.start();
+    }
+
+    private static OutboundSseEvent createStatsEvent(final OutboundSseEvent.Builder builder,
final int eventId) {
+        return builder
+            .id("" + eventId)
+            .data(Stats.class, new Stats(new Date().getTime(), RANDOM.nextInt(100)))
+            .mediaType(MediaType.APPLICATION_JSON_TYPE)
+            .build();
+    }
+}

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsServer.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsServer.java
b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsServer.java
new file mode 100644
index 0000000..140821f
--- /dev/null
+++ b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/java/demo/jaxrs/sse/StatsServer.java
@@ -0,0 +1,71 @@
+/**
+ * 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.jaxrs.sse;
+
+import java.io.File;
+
+import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
+
+import org.apache.catalina.Context;
+import org.apache.catalina.WebResourceRoot;
+import org.apache.catalina.Wrapper;
+import org.apache.catalina.core.StandardContext;
+import org.apache.catalina.startup.Tomcat;
+import org.apache.catalina.webresources.DirResourceSet;
+import org.apache.catalina.webresources.StandardRoot;
+import org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet;
+import org.apache.cxf.transport.sse.SseHttpTransportFactory;
+
+public final class StatsServer {
+    private StatsServer() {
+    }
+
+    public static void main(final String[] args) throws Exception {
+        // Register and map the dispatcher servlet
+        final File base = new File(System.getProperty("java.io.tmpdir"));
+
+        final Tomcat server = new Tomcat();
+        server.setPort(8686);
+        server.setBaseDir(base.getAbsolutePath());
+
+        final StandardContext context = (StandardContext)server.addWebapp("/", base.getAbsolutePath());
+        context.setConfigFile(StatsServer.class.getResource("/META-INF/context.xml"));
+        context.setAddWebinfClassesResources(true);
+        context.setResources(resourcesFrom(context, "target/classes"));
+
+        final Wrapper cxfServlet = Tomcat.addServlet(context, "cxfServlet", new CXFNonSpringJaxrsServlet());
+        cxfServlet.addInitParameter(CXFNonSpringJaxrsServlet.TRANSPORT_ID, SseHttpTransportFactory.TRANSPORT_ID);
+        cxfServlet.addInitParameter("jaxrs.providers", JacksonJsonProvider.class.getName());
+        cxfServlet.addInitParameter("jaxrs.serviceClasses", StatsRestServiceImpl.class.getName());
+        cxfServlet.setAsyncSupported(true);
+        cxfServlet.setLoadOnStartup(1);
+        context.addServletMappingDecoded("/rest/*", "cxfServlet");
+
+        server.start();
+        server.getServer().await();
+    }
+
+    private static WebResourceRoot resourcesFrom(final Context context, final String path)
{
+        final File additionResources = new File(path);
+        final WebResourceRoot resources = new StandardRoot(context);
+        resources.addPreResources(new DirResourceSet(resources, "/", additionResources.getAbsolutePath(),
"/"));
+        return resources;
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/jax_rs/sse_client/src/main/resources/META-INF/cxf/org.apache.cxf.Logger
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/sse_client/src/main/resources/META-INF/cxf/org.apache.cxf.Logger
b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/resources/META-INF/cxf/org.apache.cxf.Logger
new file mode 100644
index 0000000..27dd788
--- /dev/null
+++ b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/resources/META-INF/cxf/org.apache.cxf.Logger
@@ -0,0 +1 @@
+org.apache.cxf.common.logging.Slf4jLogger
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/jax_rs/sse_client/src/main/resources/logback.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/sse_client/src/main/resources/logback.xml
b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/resources/logback.xml
new file mode 100644
index 0000000..29c0c7c
--- /dev/null
+++ b/distribution/src/main/release/samples/jax_rs/sse_client/src/main/resources/logback.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration scan="true" scanPeriod="5 seconds">
+	<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+		<encoder>
+			<pattern>[%level] %d{yyyy-MM-dd HH:mm:ss.SSS} %logger{36} - [%X] %msg%n</pattern>
+		</encoder>
+	</appender>
+
+	<root level="DEBUG">
+		<appender-ref ref="STDOUT" />
+	</root>
+</configuration>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cxf/blob/29b273dc/distribution/src/main/release/samples/pom.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/pom.xml b/distribution/src/main/release/samples/pom.xml
index 667348e..c83e7a9 100644
--- a/distribution/src/main/release/samples/pom.xml
+++ b/distribution/src/main/release/samples/pom.xml
@@ -121,6 +121,7 @@
         <module>jax_rs/sse_cdi</module>
         <module>jax_rs/sse_tomcat</module>
         <module>jax_rs/sse_spring</module>
+        <module>jax_rs/sse_client</module>
         <module>jax_rs/tracing_brave</module>
         <module>jax_rs/tracing_brave_osgi</module>
         <module>jaxws_tracing_brave_osgi</module>


Mime
View raw message