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 8451455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:14:44+00:00 2026-06-10T11:14:44+00:00

I am looking for an efficient way to convert a ResultSet into a form

  • 0

I am looking for an efficient way to convert a ResultSet into a form I can send via GWT-RPC that can be part of a GWT server-client communication in general.
What are the advantages and disadvantages of using JSON vs the RequestFactory?
Would someone care to explain them in case I want to use them as described above?

It might be important to say that I want to process at the client large portions of the database and not just single entries. I’m talking about hundreds of entries at a time, so I basically think I need a way to efficiently transfer the data.

Wouldn’t requesting one entry at a time create a large overhead?

A tutorial in something similar would be appreciated.

  • 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-10T11:14:45+00:00Added an answer on June 10, 2026 at 11:14 am

    Moving large chunks of data around is usually a really bad idea and un-typical for a client-server architecture. So I would recommend a redesign.

    GWT-RPC is service oriented. Which all RPC frameworks are. The main purpose is to serialize/deserialize the method call. In other words, what server and client are communicating are messages which must be well defined. In GWT the underlying transport mechanism is JSON and in SOAP (for example) it is XML but the mechanisms are the same.

    RequestFactory is much more data-centric. Imagine a servlet that is triggered by a simple HTTP request with the URL /getCustomers. The servlet simply accesses the database and returns the result. RequestFactory is very much like that but offers additional facilities. For example, RequestFactory relies on creating an entity object Customer on the server and a proxy object CustomerProxy on the client. The framework handles transport of data between these objects. More specifically, RequestFactory can update individual properties (i.e. ‘fields’) and can thus increase efficiency by sending the differences in state only.

    An important architectural difference is that GWT-RPC operates at a more functional level. RequestFactory operates at the data level. A typical implementation could be to have a CRUD interface setup using RequestFactory. Such a design would be very wrong using GWT-RPC.

    I recommend reading up on these two frameworks more before you make a decision. However, RequestFactory seems to be the best solution to your problem.

    If you have only one use case for this then implementing your own servlet would probably do just fine. Use a RequestBuilder in your GWT code to request the data from the servlet. Access the db, convert the ResultSet to JSON, at the client you convert the response back into a JavaScriptObject and you are done. This would save you the work for setting up RequestFactory and all the entities, proxies and locators.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for an efficient way to convert a large int[] into a
I'm looking for an efficient way to implement the same kind of layout that
I'm looking for a simple, efficient way to convert strings in CamelCase to underscore
I'm looking for an efficient way to hash a 6-byte field so that it
I'm looking for an efficient way to chance a string such that all sequences
While looking into Efficient way to compute p^q (exponentiation), where q is an integer
I'm looking for an efficient way to store some user-level data that do not
I'm looking for an efficient way to convert axes coordinates to pixel coordinates for
I'm looking for an efficient way to implement a concurrent tree structure. If that
I'm looking for an efficient way to get the list of unique commit authors

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.