the purpose of such contributions are :
1. Handle RPC, you choose a method to call from client side, and the correct
class/method is called on server side. This involve at least a Servlet to
handle client side HTTP request.
2. Handle serialization/deserialization from/to Java/JSON. This transform
Javascript object fro:+to Java instance.
Of course, all that is optional but beware of NIHS (Not Invented Here Syndrom)
because
you'll have to deal in one way or another with that problem if you are using a
backend :
- handle errors properly
- maintain OO on server side
- keep things simple without polluting your server object with client side
knowledge,
- keep things clean on server side : no String everywhere, Java use type.
- performance,
- ...
So, I strongly advise to use such RPC contribution is you have a backend.
On 1 nov. 2011, at 23:33, d_dunken wrote:
> Hi,
>
> I was just wondering what the purpose of the RpcJava contribution really is?
> Is it not just possible to use a stanrdard Java Servlet and format the
> response depending on what servlet was being called?
>
> var req = new qx.io.remote.Request(url, "GET", "text/plain");
>
> And use a servlet to just send the resulting content:
> ...
> public void doGet(HttpServletRequest request, HttpServletResponse response)
> throws IOException, ServletException
> {
> response.setContentType("text/plain");
> PrintWriter out = response.getWriter();
> out.println("A Sample String...");
> }
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/RpcJava-vs-Java-servlet-tp6953492p6953492.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> RSA® Conference 2012
> Save $700 by Nov 18
> Register now!
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel