Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8038399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:13:25+00:00 2026-06-05T03:13:25+00:00

I prefer to use RPC Serialization but then send data using servlets. We have

  • 0

I prefer to use RPC Serialization but then send data using servlets.
We have strangely found that this performs better and it allows us to have general logic for retrying all servlet calls for example.

I have figured out how to send an object from server to client but can’t find a way to serialize on client and deserialize on server.

SERVER TO CLIENT

Server:

serializedObj = RPC.encodeResponseForSuccess(DUMMY_METHOD_OF_TYPE_SERIZABLE, object);

Client:

GWT.create(MyRpc.class).createStreamReader(serializedObj).readObject();

CLIENT TO SERVER
Client:

 SerializationStreamWriter streamWriter = streamFactory.createStreamWriter();
    streamWriter.writeObject(object);
    serializedObj =  streamWriter.toString();

But how can I unserialize this after sending it by POST to the server?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:13:27+00:00Added an answer on June 5, 2026 at 3:13 am

    http://softteco.blogspot.com/2010/02/serializing-objects-in-gwt-and.html

    Note the server side deserialize option

        // Getting parameter from request
    String content = request.getParameter("content");
    // Initializing stream reader
    ServerSerializationStreamReader streamReader = new ServerSerializationStreamReader(
    Thread.currentThread().getContextClassLoader(), null);
    // Filling stream reader with data
    streamReader.prepareToRead(content);
    // Reading deserialized object from the stream
    dto = (D) streamReader.readObject();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This page says to use: var object = $.extend({}, object1, object2); But I prefer
I use example with Rails 3, but I believe that this is true for
I have several instances in my application that I would prefer to use a
Do you have a default type that you prefer to use in your dealings
I have a framework for client side validation that I'd prefer to use over
I don't want to use sendmail to send an email but would prefer to
I was reading about this scenario where making use of the C# using statement
I'd prefer to use the crypt function and use blowfish encryption, but the current
I would prefer to use what I already have and just add an image
As a C# developer that uses MS SQL Server heavily I'd prefer to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.