Sorry, not followed the proper java project stucture.. Created simply using Notepad for learning.
This dummy application is used to understand the messaging. This will give besic understanding how protocal is working background of message. It mainly cantained two class, one is client class and other is server class.
Working:
- First execute the sever class in command prompt and keep it's opened.
- After this, open new command prompt and execute the client class and keep it's opened.
- After this, open new command prompt and execute the client class.
- Now we have three command prompt window one working for server and other two will work as a different client.
- If we will send message from one client window then it will go through server to other client window.