diff --git a/README.md b/README.md index 78b616796ccbb5347f0337738561be22dab59a23..4935b3ed090a4a651601537e02300697a8e38a92 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,14 @@ 1. COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up --build -d 2. Visit - 1. curl http://localhost:8080/restApp-1.0-SNAPSHOT/resources/sample - 2. curl http://localhost:8080/restApp-1.0-SNAPSHOT/resources/sample/hello - 3. curl http://localhost:8080/restApp-1.0-SNAPSHOT/resources/sample/main - 4. curl http://localhost:8080/restApp-1.0-SNAPSHOT/resources/sample/persons + 1. curl http://localhost:8080/restApp/sample + 2. curl http://localhost:8080/restApp/sample/hello + 3. curl http://localhost:8080/restApp/sample/main + 4. curl http://localhost:8080/restApp/sample/persons 5. curl -H "Content-Type: application/json" \ -X POST \ -d '{"name":"Jeanne"}' \ - http://localhost:8080/restApp-1.0-SNAPSHOT/resources/sample/persons + http://localhost:8080/restApp/sample/persons 6. curl http://localhost:8080/restApp-1.0-SNAPSHOT/resources/sample/persons/843c8236-6c6b-450e-9aa3-211a9b897403 7. curl -H "Accept: text/xml" http://localhost:8080/restApp-1.0-SNAPSHOT/resources/sample/persons ## Import "real" certificate diff --git a/websocketClient/src/main/java/fr/univtln/bruno/samples/jee91/wsclient/WsClient.java b/websocketClient/src/main/java/fr/univtln/bruno/samples/jee91/wsclient/WsClient.java index bf1e350d04622d4c2be010f939b38f0d3151213e..3ed86072a8b712266064df3c3a186a1b4103f61f 100644 --- a/websocketClient/src/main/java/fr/univtln/bruno/samples/jee91/wsclient/WsClient.java +++ b/websocketClient/src/main/java/fr/univtln/bruno/samples/jee91/wsclient/WsClient.java @@ -41,7 +41,7 @@ public class WsClient { public static void main(String[] args) { try { - final WsClient clientEndPoint = new WsClient(new URI("ws://localhost:8080/wsApp-1.0-SNAPSHOT/hellows")); + final WsClient clientEndPoint = new WsClient(new URI("ws://localhost:8686/wsApp/hellows")); clientEndPoint.sendMessage("Hello 1 !"); Thread.sleep(5000); clientEndPoint.sendMessage("Hello 2 !"); diff --git a/websocketClient/src/main/resources/META-INF/log4j.properties b/websocketClient/src/main/resources/META-INF/log4j.properties new file mode 100644 index 0000000000000000000000000000000000000000..c667f1b0a54f2545b984f7bcfa4370762ee732e6 --- /dev/null +++ b/websocketClient/src/main/resources/META-INF/log4j.properties @@ -0,0 +1,17 @@ +log4j.rootLogger=debug, stdout, R + +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout + +# Pattern to output the caller's file name and line number. +log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n + +log4j.appender.R=org.apache.log4j.RollingFileAppender +log4j.appender.R.File=wsClient.log + +log4j.appender.R.MaxFileSize=100KB +# Keep one backup file +log4j.appender.R.MaxBackupIndex=1 + +log4j.appender.R.layout=org.apache.log4j.PatternLayout +log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n \ No newline at end of file