Yep, all the GET information is in the URL. So something on the order
of "please send me 'X'" will work (response can, after all, be any
size), but "here, have these 10 objects" is likely to choke.
I suppose you can override HttpServlet's service call. But, given a
choice, I'm going to override
by the way, why I dont recommend to use GET is because this http
method simply does not define to have body where you can put big
amount of data, its all about the url and its params and some extra
data like a header...no place for big payload
On 17 Nov., 17:01, Greg Dougherty wrote:
> AbstractRe
hm, not necessarily, you can also override doService() to hook in at
lower level and delegate in there, but would be messy, though. maybe
googles rpc servlets are just not intented to allow change on
communucation protocol
On 17 Nov., 17:01, Greg Dougherty wrote:
> AbstractRemoteServiceServlet (w
AbstractRemoteServiceServlet (which all GWT Servlets inherit from)
declares "public final void doPost". So regardless of what you SHOULD
do, if you've got a GWT Servlet that you want to ALSO handle HTTP
requests, then is HAS to do it through doGet.
Unless you can point me to some hook in the proc
actually, if your beans implement the Seriliazable interface (not only
IsSerializable) you can just use java's ObjectStream to get them on
wire. (look for short demo at
http://download.oracle.com/javase/tutorial/essential/io/examples/ObjectStreams.java
)
so your servlets would communicate over POS
Thx for the answers...
I wanted to use serialization from the start but i really want to know how
can i use JSON.
BUT, i need to know if there is something simple that i can use (GWT, java,
or other libs). For example, i have some java beans (with simple fields -
string, integer, lists of those typ
not sure if this will work outofthe box, since in GWT RPC there is
always a client which is initiating an RPC request first. so you have
to do so in your server code, except for there is nor XHR on the
server, the rest should work fine, especially serialization of the
request command, which you wou
Use Java Serialization to send the the objects from one servlet to
another.
Make sure you have the Objects implement Serializable. :-)
You can override doGet without damaging GWT RPC. One servlet does
that, the other (the one driving the exchange) makes an HTTP call to
it. They both use Object
Hello, I want to send objects between 2 servlets and i was wondering
if the GWT RPC mechanism used for client - server communication can
also be used to send data across two servlets that extend
RemoteServiceServlet.
Or maybe I can use the Java serialization to actually send bytes from
one servlet