Giter VIP home page Giter VIP logo

rmi-example's Introduction

RMI Example

This is an example of how to implement an RMI Server and Client sharing only a common set of Integration interfaces. The server starts an RMIClassServer which serves up concreate Class implementations of the interfaces shared. The example binds into localhost and assumes you are running the client and server on the same host, but it is trival to update this to run accross a network.

There are a couple of external dependencies to use Jetty as the base of the webserver but you could remove this and implement basic Http functionality from scratch if that was a problem.

Requirements

  • maven Download here

Running an RMIRegistry

If you are binding onto localhost then the Server will start an RMIRegistry automatically and you don't need to do anything. If you want to run the RMIRegistry on a different host or you want to run it yourself you should invoke it with the following option.

  • rmiregistry -J-Djava.rmi.server.useCodebaseOnly=false

See here for an explanation

Building

  • ./build.sh

Running Server

  • ./runServer.sh

Running Client

  • ./runClient.sh

Development

  • mvn eclipse:eclipse
  • import as existing project

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.