Space Rocker
Space Rocker

Reputation: 787

Simple Protocol Concept in Java for this setup

i need some idea/suggestion regarding the implementation of any simple/easy to use setup for such system:

enter image description here

I have two machines, where one will send commands (can be commands, configuration files, text, xml etc) (I have to decide in which way the commands should work) and the other will implement those command. However this is not a completely interactive terminal application, the sender just need to know if it was executed fine or not.

Also RPC is not an option, do i simply go by implementing client/server socket concept??
Is there any well known library to help realize such scenraio in Java? or may be some web server and http based communication??

Any suggestions for opensource libraries to realize such scenario?

Upvotes: 0

Views: 544

Answers (2)

Matt Westlake
Matt Westlake

Reputation: 3651

If you use sockets or any other TCP messaging service, you will get guarantied message delivery, and then all you need is to write the response on the server end and send it back.

Upvotes: 1

Space Rocker
Space Rocker

Reputation: 787

The Apache MINA project. MINA's API is lower level and a great deal complicated. Even the simplest client/server will require a lot more code to be written. MINA also is not integrated with a robust serialization framework and doesn't intrinsically support RMI.

The Priobit project is a minimal layer over NIO. It provides TCP networking, but without the higher level features. Priobit requires all network communication to occur on a single thread.

The Java Game Networking project is a higher level library. JGN does not have as simple of an API.

KryoNet is a Java library that provides a clean and simple API for efficient TCP and UDP client/server network communication using NIO.

Upvotes: 0

Related Questions