Skip to content

Commit 3088c94

Browse files
module docs updates for logging sample
1 parent c7a564f commit 3088c94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
7575
} else {
7676
log.debug("JSON MessageReceiver found, proceeding with the JSON request");
7777
Object tempObj = msgContext.getProperty(JsonConstant.IS_JSON_STREAM);
78-
if (tempObj != null) {
78+
if (tempObj != null && Boolean.valueOf(tempObj.toString())) {
7979
Object o = msgContext.getProperty(JsonConstant.MOSHI_XML_STREAM_READER);
8080
if (o != null) {
8181
MoshiXMLStreamReader moshiXMLStreamReader = (MoshiXMLStreamReader) o;

src/site/xdoc/docs/modules.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class of the module (in this example it is the "LoggingModule"
166166
class and various handlers that will run in different phases). The
167167
"module.xml" for the logging module will be as follows:</p>
168168
<pre>
169-
&lt;module name="logging" class="userguide.loggingmodule.LoggingModule"&gt;
169+
&lt;module name="sample-logging" class="userguide.loggingmodule.LoggingModule"&gt;
170170
&lt;InFlow&gt;
171171
&lt;handler name="InFlowLogHandler" class="userguide.loggingmodule.LogHandler"&gt;
172172
&lt;order phase="loggingPhase" /&gt;
@@ -316,7 +316,7 @@ configuration descriptions for the logging module, and by changing
316316
the "axis2.xml" we created the required phases for the logging
317317
module.</p>
318318
<p>Next step is to "<b>engage</b>" (use) this module in one of our
319-
services. For this, let's use the same Web service that we have
319+
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
320320
used throughout the user's guide- MyService. However, since we need
321321
to modify the "services.xml" of MyService in order to engage this
322322
module, we use a separate Web service, but with similar

0 commit comments

Comments
 (0)