diff --git a/README.md b/README.md index ab282df..c6b286b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ If you use maven for dependency management, add following snippet to pom.xml: com.nmote.xr nmote-xr - 2.1.0 + 2.2.0 @@ -85,6 +85,19 @@ Usage } ``` +* You can trace XML-RPC calls through LoggerAdapter. Configuration is made through + EndpointBuilder::debug builder method + +```java + String url = "http://www.cookcomputing.com/xmlrpcsamples/math.rem"; + Math m = EndpointBuilder.client(url, Math.class).debug().get(); + System.out.println(m.add(2, 3)); +``` + +To use your's logging framework of choice instead of System.err, implement +com.nmote.xr.log.LoggerAdapter interface. + + * For production you will need to expose `com.nmote.xr.Endpoint` via one or more `com.nmote.xr.XRServlet` instances. Endpoint handling client's request is passed in either as a servlet request attribute or a servlet context attribute named diff --git a/pom.xml b/pom.xml index 6a27e50..813e6d4 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.nmote.xr nmote-xr - 2.1.1 + 2.2.0 jar nmote-xr XML-RPC client server library diff --git a/src/main/java/com/nmote/xr/About.java b/src/main/java/com/nmote/xr/About.java index cdc8ca7..47cfeb1 100755 --- a/src/main/java/com/nmote/xr/About.java +++ b/src/main/java/com/nmote/xr/About.java @@ -9,11 +9,11 @@ public final class About implements Serializable { - public static final long serialVersionUID = 210L; + public static final long serialVersionUID = 220L; - public static final String COPYRIGHT = "Copyright (c) 2005-2014, Nmote ltd., All rights reserved"; + public static final String COPYRIGHT = "Copyright (c) 2005-2015, Nmote ltd., All rights reserved"; public static final String NAME = "nmote-xr"; - public static final String VERSION = "2.1.0"; + public static final String VERSION = "2.2.0"; private About() {}