[Json-rpc-java] Newbie help required.

Ross MacCharles maccharles at gmail.com
Tue May 30 22:22:40 SGT 2006


Hi Sandeep.

You can use any HTTP client.  Since you mention a web server it sounds like
you are web based but not browser based.

If you do not use Javascript and/or a  browser in you client you will need
to manage the JSON formatted data returned from the server yourself in the
client. You will also need to manage the HTTP connections and session ids.

What you will be left with is marshalling/demarshalling between JSON and
Java. You will need to decide for yourself if this is helpful to you.

To help with parsing, you can probably use one of the JSON libraries for
whatever language your client happens to be using.

You will also need to deal with the issue of registering Java objects with
the JSON RPC bridge without using a JSP.  I made modifications to allow for
registration from the client itself  using an HTTP request, without the
expectation that my JavaBeans will be registered on page load.  This has the
added benefit that my objects will automatically re-register with the bridge
if my server restarts for any reason.   One downside is that my client must
"know" the exact class of the objects it wishes to register.

Depending on your situation you may be able to use a filter to register
objects.  I suspect there are other ways to handle registration.

/Ross


On 5/30/06, Sandeep Raja Rao <sandeep at dcis.net> wrote:
>
> Our requirement is to implement a mechanism to transfer data beween
> devices using jamvm.
>
> The web server on all devices would be jetty 5.1
>
> However our application will be not be web based and hence no java
> scripts.
>
> Can we use JSON-RPC?
>
> If yes has any user tried it.  If so I kindly request for a small server
> side and client side code to demonstrate the usage of the same or any
> link where I can find the same.
>
> Thanks for your valuable time.
>
> Regards
> Sandeep
>
> _______________________________________________
> Json-rpc-java mailing list
> Json-rpc-java at oss.metaparadigm.com
> http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java
>


More information about the Json-rpc-java mailing list