Possible technologies for communicating with Java client and server with primitive data?

What are the most common technologies for a client java application to interact with an application Java application, and what are the pros and cons?

Please tell me the magic words for internet searches. I've heard " Enterprise Java Bean

", " RMI

", " Web Services

" and " JSON

".

Just where I start looking so I can connect my client JavaSE

to the server application processing JavaEE

.

Now I would just like to move primitive data: numbers

, dates

, Strings

etc.

+3


source to share


3 answers


Some good options:

You can also use the JSON / XML interchange formats. But they can be cumbersome, and I think binary formats are better if you are in control of both the client and the server (mainly for network speed and efficiency reasons).



Also, if you're interested in more low-level stuff, I highly recommend taking a look at Netty - I think this is pretty much the gold standard for Java IO Networking right now.

0


source


Your question is quite broad and it seems difficult for you to know where to start. There are heaps and heaps of solutions for this. The key here is to keep things as simple as possible.

If I were you I would take a look at http://dropwizard.codahale.com .



If you take the time to read the examples and read some of the documentation, you will understand all the basic concepts, even if you decide that this is not the best solution for your application.

FYI - Dropwizard is licensed under the Apache v2 license.

0


source


You can have a look at finagle , which is an asynchronous networking stack for the JVM that can be used to build asynchronous Remote Procedure Client (RPC) Calls (RPC) in Java, Scala, or any language that supports the JVM. Finagle provides a rich set of tools that are protocol agnostic.

0


source







All Articles