Skip to content

Buddhikanip/Simple-Pub-Sub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Publisher and Subscriber Application using java

Prerequisites

Before running the server, ensure you have the following:

  • Java Development Kit (JDK) installed.

How to run

  • You have to clone this project

  • Goto src folder location

    cd ./Simple-Pub-Sub/src
  • You have to compile Server.java file

    javac Server.java
  • Run Server

    java Server 5000
  • Using another terminal compile Client.java file

    javac Client.java
  • Run Client (Using several terminals you can up several clients with topics below commands)

    • Run PUBLISHER
      java Client 127.0.0.1 5000 PUBLISHER TOPIC
    • Run SUBSCRIBER
      java Client 127.0.0.1 5000 SUBSCRIBER TOPIC
      Messages from publishers are sent to subscribers who are listening to the publisher's topic.

About

Simple publisher and subscriber middleware demo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages