Giter Site home page Giter Site logo

pubsub's Introduction

PubSub

Overview

This is publish subscribe system (PubSub) that uses two forms of communication: basic messages using UDP and Java RMI for publishing and subsscribing. The PubSub system will allow the publishing of simple formatted “articles”.

Authors

Building Project

Steps:

  • Install pom: mvn install

  • Compile: mvn compile

  • Create package: mvn package

    • This will create tar distribution in dist/target/
  • Generate eclipse project files: mvn eclipse:eclipse

    • This project can be now imported in eclipse.

Starting RMI Registry

  • To start RMI registry on server host you need to set the CLASSPATH first.
  • The classpath should include the path of the jar that contains the Communicate interface and the PubSubService\_Stub. This is the common and server jar.
  • Eg. export CLASSPATH="/home/prashant/workspace/PubSub/common/target/common-1.0-SNAPSHOT.jar:/home/prashant/workspace/PubSub/server/target/server-1.0-SNAPSHOT.jar"
  • Run rmiregistry now.

Setting up Security policy

  • Create a security policy file.
  • Eg security.policy. Contents of this file: grant { // Allow everything for now permission java.security.AllPermission; };

Starting client (on Linux)

  • Go to the pubsub-1.0-SNAPSHOT/: cd dist/target/pubsub-1.0-SNAPSHOT/
  • Run: java -Djava.security.policy="<SECURITY POLICY FILE>" -cp ./client-1.0-SNAPSHOT.jar:./server-1.0-SNAPSHOT.jar:./common-1.0-SNAPSHOT.jar edu.umn.pubsub.client.Client <IP ADDRESS OF THE SERVER> <IP_ADDR_OF_UDP_CLIENT> <UDP_CLIENT_PORT>
  • This will give you the client command line prompt.

Starting server (on Linux)

  • Go to the pubsub-1.0-SNAPSHOT/: cd dist/target/pubsub-1.0-SNAPSHOT/
  • Run: java -Djava.security.policy="<SECURITY POLICY FILE>" -cp ./client-1.0-SNAPSHOT.jar:./server-1.0-SNAPSHOT.jar:./common-1.0-SNAPSHOT.jar edu.umn.pubsub.server.Server <IP ADDRESS OF THE SERVER>

pubsub's People

Contributors

generalpacific avatar abhijeetvg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.