Code Monkey home page Code Monkey logo

greetings-rmi's Introduction

greetings-rmi Remote Method Invocation with Java

Sample project using Java RMI messaging. Updated with more specific instructions to run the app. This program can act as a server or a client but not both. The program arguments are to determine that role.

Build

mvn clean package

Runs

To run this program, three terminals are needed. Go to the project folder where the project is built.

Run rmiregistry

Go to the folder of the project. Run the following comamnds:

export CLASSPATH=$CLASSPATH:target/greetings-rmi-1.0-SNAPSHOT-jar-with-dependencies.jar

rmiregistry

rmiregistry is a go between client server. It is a service broker that knows about the functions of the server. It helps connect client to the server to interact to exchange data.

Run Server

java -cp target/greetings-rmi-1.0-SNAPSHOT-jar-with-dependencies.jar edu.harrisburgu.cisc525.app.Main server //student-VirtualBox/GreetingServer

Run Client

java -cp target/greetings-rmi-1.0-SNAPSHOT-jar-with-dependencies.jar edu.harrisburgu.cisc525.app.Main client //student-VirtualBox/GreetingServer "Johnny B Good"

greetings-rmi's People

Contributors

drtran avatar drkiettran avatar

Watchers

James Cloos avatar

Forkers

doogedegbe congee

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.