Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JSON RPC

63 views
Skip to first unread message

Ed Judge

unread,
Sep 15, 2014, 8:49:42 PM9/15/14
to
Looking for a good tutorial/coding examples on writing a JSON RPC server in Java.
There seems to be a couple of different options but none that I have seen provide a concrete working example (there is always something that is missing). Can anyone suggestion good webpage? I don't care what package I use at this point. Something that is easy an simple to get running would be greatly appreciated.

Thanks,
Ed

Arne Vajhøj

unread,
Sep 15, 2014, 8:56:05 PM9/15/14
to
You should use something JAX-RS compliant.

Maybe that already ships with your server.

If not then get either RESTEasy for Jersey.

There must be hundreds examples of creating JAX-RS services
in the internet.

A few:
http://docs.oracle.com/javaee/7/tutorial/doc/jaxrs.htm
http://www.vogella.com/tutorials/REST/article.html
http://www.mkyong.com/tutorials/jax-rs-tutorials/
http://howtodoinjava.com/restful-web-service/

Arne

Kevin McMurtrie

unread,
Sep 16, 2014, 12:56:33 AM9/16/14
to
In article <54178a93$0$300$1472...@news.sunsite.dk>,
Also Jackson JSON and Google GSON for adding modular JSON object mapping
and manipulation to existing applications. I like Jackson's
performance-tuned APIs for streaming and translating between different
object mappings.

--
I will not see posts from astraweb, theremailer, dizum, or google
because they host Usenet flooders.

Ed Judge

unread,
Sep 16, 2014, 8:07:44 AM9/16/14
to
Do these suggestions _easily_ integrate into an RPC mechanism? The ones I saw include:

jsonrpc4j
json-rpc
java-json-rpc
lib-json-rpc
simplejsonrpc
gson-rmi

On the client side I am using "Go". On the server side I want to use Java.
To give you an idea of what I am looking for and have found for Go:

http://jan.newmarch.name/go/rpc/chapter-rpc.html

This provides a nice easy concrete example of how to make use of JSON RPC. That is all I am looking for from Java. Kind of like "Hello world" example but for JSON RPC.

-Ed

Arne Vajhøj

unread,
Sep 16, 2014, 7:15:48 PM9/16/14
to
On 9/16/2014 8:07 AM, Ed Judge wrote:
> On Tuesday, September 16, 2014 12:56:33 AM UTC-4, Kevin McMurtrie wrote:
>> In article <54178a93$0$300$1472...@news.sunsite.dk>,
>> Arne Vajhøj <ar...@vajhoej.dk> wrote:
>>> On 9/15/2014 8:48 PM, Ed Judge wrote:
>>>> Looking for a good tutorial/coding examples on writing a JSON RPC
>>>> server in Java. There seems to be a couple of different options but
>>>> none that I have seen provide a concrete working example (there is
>>>> always something that is missing). Can anyone suggestion good
>>>> webpage? I don't care what package I use at this point. Something
>>>> that is easy an simple to get running would be greatly appreciated.
>>>
>>> You should use something JAX-RS compliant.
>>>
>>> Maybe that already ships with your server.
>>>
>>> If not then get either RESTEasy for Jersey.

>> Also Jackson JSON and Google GSON for adding modular JSON object mapping
>> and manipulation to existing applications. I like Jackson's
>> performance-tuned APIs for streaming and translating between different
>> object mappings.

> Do these suggestions _easily_ integrate into an RPC mechanism? The ones I saw include:
>
> jsonrpc4j
> json-rpc
> java-json-rpc
> lib-json-rpc
> simplejsonrpc
> gson-rmi
>
> On the client side I am using "Go". On the server side I want to use Java.
> To give you an idea of what I am looking for and have found for Go:
>
> http://jan.newmarch.name/go/rpc/chapter-rpc.html
>
> This provides a nice easy concrete example of how to make use of JSON RPC. That is all I am looking for from Java. Kind of like "Hello world" example but for JSON RPC.

JAX-RS is REST style not RPC style.

So no - it will not fit JSON-RPC.

But on the hand it will fit with what most other people are doing!

:-)

Arne

0 new messages