Sunday, March 1, 2009

Logger for Axis2 now available too

I have just uploaded the Logger for Apache Axis2 to the utilities here. See the sample client found here on how to integrate this with a typical Axis2 client. Basically you will need to copy the deployable MAR file into your Axis2 repository/modules directory. Configuration of the module will be via your axis2.xml in the form shown below:

...

<module ref="logger"/>
<moduleConfig name="logger">
<parameter name="rootPath">/tmp/x/y</parameter>
<parameter name="identifier">cfg1</parameter>
<parameter name="enabled">true</parameter>
<parameter name="enableJMX">true</parameter>
</moduleConfig>

...


Connecting via JMX/JConsole allows you to enable/diable the Logger on demand, and can easily be modified to report statistics, response time of the backend service etc.. Let me know how you like this, and what would make this even more helpful

0 comments: