Skip to content

YooZiiX/Push-RMI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push Architecture in CLI

Implementation of the Client-Server Architecture : Push, using Remote Method Invocation.

How to run ?

  1. Execute Server.java

  2. When "Server's ready", execute Client.java, and enter a username.

  3. Then, execute Client2.java, and enter a username for the second Client.

  4. Next, in the command line terminal of Client or Client2, inform the receiver receiver and your message.

  5. Finally, the receiver receives the message from the emitter in its command line terminal.

Further information :

  • Two users cannot have the same nickname.
  • User can send a message to himself.
  • All information is printed on server-side.

Model Description (Subject)

Client apps own a reception component : ReceiverImpl, that enable Server app to send them immediately received messages (instant messaging).

Reception components also provide functions that enable Server app to push to clients the list of connected clients (initClients function) then to update this list (addClient and remClient functions).

Reception component ReceiverImpl references are provided to Server app thanks to an input parameter (Receiver) of the connect function of the server’s Connection component. This function returns a reference of the Emitter component that is instantiated to be used by the client to send messages to the Server (and that incidentally represents the client app on the server).

Sylvain VAUTTIER, IMT Mines Alès.

About

Implementation of the Client-Server Architecture : Push, using Remote Method Invocation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages