This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 3088c94c396c9699d301b39890c7aa2dac0eb1c5 Author: Robert Lazarski <robertlazar...@gmail.com> AuthorDate: Mon Mar 3 10:33:09 2025 -1000 module docs updates for logging sample --- modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java | 2 +- src/site/xdoc/docs/modules.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java b/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java index 404be6bc03..b9d7b7f553 100644 --- a/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java +++ b/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java @@ -75,7 +75,7 @@ public class JSONMessageHandler extends AbstractHandler { } else { log.debug("JSON MessageReceiver found, proceeding with the JSON request"); Object tempObj = msgContext.getProperty(JsonConstant.IS_JSON_STREAM); - if (tempObj != null) { + if (tempObj != null && Boolean.valueOf(tempObj.toString())) { Object o = msgContext.getProperty(JsonConstant.MOSHI_XML_STREAM_READER); if (o != null) { MoshiXMLStreamReader moshiXMLStreamReader = (MoshiXMLStreamReader) o; diff --git a/src/site/xdoc/docs/modules.xml b/src/site/xdoc/docs/modules.xml index 3d80244237..2fbfd3266f 100644 --- a/src/site/xdoc/docs/modules.xml +++ b/src/site/xdoc/docs/modules.xml @@ -166,7 +166,7 @@ class of the module (in this example it is the "LoggingModule" class and various handlers that will run in different phases). The "module.xml" for the logging module will be as follows:</p> <pre> -<module name="logging" class="userguide.loggingmodule.LoggingModule"> +<module name="sample-logging" class="userguide.loggingmodule.LoggingModule"> <InFlow> <handler name="InFlowLogHandler" class="userguide.loggingmodule.LogHandler"> <order phase="loggingPhase" /> @@ -316,7 +316,7 @@ configuration descriptions for the logging module, and by changing the "axis2.xml" we created the required phases for the logging module.</p> <p>Next step is to "<b>engage</b>" (use) this module in one of our -services. For this, let's use the same Web service that we have +services. (Hint: it is often easier to edit the axis2.xml for global logging). For this, let's use the same Web service that we have used throughout the user's guide- MyService. However, since we need to modify the "services.xml" of MyService in order to engage this module, we use a separate Web service, but with similar