MySQL data base (Install MySQL Community Server (GPL) version in your system : MySQL Community Server). We are using version 5.6 ( If you are not sure how to install it please use this link : Install MySQL server)

dispatcher-servlet_use_jboss_jndi.xml: Use this property file if you want to read data source configuration from application server. By default configuration has been done of JBoss application server. To use this file first you will have to create data source on application server then use data source JNDI name and inject inside bean:

message_en.properties file: Use this file to keep all your static properties values, this will also work if you want to implement internationalization default locale I kept is English and based on your need create separate file for another locale.

Step 11: To test if logger is working and write log on console including it create log file in “C:/Javahonk/Log4jXML.log” also reading message label from properties file please enter below URL you will see below output:

Message on console:

Check C:/Javahonk folder you will see Log4jXML.log file with log information:

Step 12: To test JSON data to user as RESTFul web server please use below URL as you will see below we are passing two parameter in URL and reading its value on the server: