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

The Archive Base Latest Questions

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

Fetched below given text from http://docs.oracle.com/html/E24396_01/ejb3_overview_why.html Serialization is Java’s built-in mechanism for transforming an

  • 0

Fetched below given text from http://docs.oracle.com/html/E24396_01/ejb3_overview_why.html

“Serialization is Java’s built-in mechanism for transforming an object graph into a series of bytes, which can then be sent over the network or stored in a file. Serialization is very easy to use, but it is also very limited. It must store and retrieve the entire object graph at once, making it unsuitable for dealing with large amounts of data. It cannot undo changes that are made to objects if an error occurs while updating information, making it unsuitable for applications that require strict data integrity. Multiple threads or programs cannot read and write the same serialized data concurrently without conflicting with each other. It provides no query capabilities. All these factors make serialization useless for all but the most trivial persistence needs.”

I am unclear about the text in bold. Can someone quote an example to support this?

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

    It’s kind a silly point, but the passage is trying to point out that serialization doesn’t really have a notion of “transactions” built into it. when you write a serialized object graph, you write the whole thing to a stream which either completely succeeds, or fails, leaving you with a partially written stream. sort of the same idea applies for concurrency as well, two different threads cannot write to the same stream at the same time.

    that said, you could “simulate” transactional storage by writing the graph to a new location and then swapping the new bytes into the old location once complete. however, that also depends on the final resting place for the data (the functionality of the storage location). serialization isn’t really even a persistence strategy in and of itself, as it still requires somewhere to store the serialized bytes. the same argument follows for the “concurrency” point, in that you can write to 2 different locations and then use the atomicity guarantees of the underlying storage to deal with the concurrency issues.

    there are other, better, arguments against using serialization for long term storage, namely the difficulties around maintaining backwards compatibility as your application’s classes mutate over time.

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

Sidebar

Related Questions

I have fetched images and text as listview from database.now on clicking the particular
I have fetched some data from a SQL database into a datagridview, but after
So I fetched some data from a mdb file in c# via SELECT *
I have fetched a result from core data in my app and need to
I have a hidden property which is fetched from ebean. how do i pass
I am able to display song tile fetched from local sd card.The issue is
my app shows a map with annotations fetched from core data. Currently I do
how can I display data fetched from several rows on a crystal report. Im
I use the below code to fetch a particular record from sqlite. public String
I have a problem after the data being fetched from Core Data. I filled

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.