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

  • Home
  • SEARCH
  • 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 30597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:28:23+00:00 2026-05-10T13:28:23+00:00

I have a large tree of Java Objects in my Desktop Application and am

  • 0

I have a large tree of Java Objects in my Desktop Application and am trying to decide on the best way of persisting them as a file to the file system.

Some thoughts I’ve had were:

  • Roll my own serializer using DataOutputStream: This would give me the greatest control of what was in the file, but at the cost of micromanaging it.

  • Straight old Serialization using ObjectOutputStream and its various related classes: I’m not sold on it though since I find the data brittle. Changing any object’s structure breaks the serialized instances of it. So I’m locked in to what seems to be a horrible versioning nightmare.

  • XML Serialization: It’s not as brittle, but it’s significantly slower that straight out serialization. It can be transformed outside of my program.

  • JavaDB: I’d considered this since I’m comfortable writing JDBC applications. The difference here is that the database instance would only persist while the file was being opened or saved. It’s not pretty but… it does lend itself to migrating to a central server architecture if the need arises later and it introduces the possibility of quering the datamodel in a simpler way.

I’m curious to see what other people think. And I’m hoping that I’ve missed some obvious, and simpler approach than the ones above.


Here are some more options culled from the answers below:

  • An Object Database – Has significantly less infrastructure than ORM approaches and performs faster than an XML approach. thanks aku
  • 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. 2026-05-10T13:28:23+00:00Added an answer on May 10, 2026 at 1:28 pm

    db4objects might be the best choice

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

Sidebar

Ask A Question

Stats

  • Questions 108k
  • Answers 108k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer UPDATE: The method described below has been deprecated. The recommended… May 11, 2026 at 9:10 pm
  • Editorial Team
    Editorial Team added an answer You're right, there's nothing in the BCL. I suspect this… May 11, 2026 at 9:10 pm
  • Editorial Team
    Editorial Team added an answer Yes I believe you would need to process the text… May 11, 2026 at 9:10 pm

Related Questions

I'm looking for a framework to generate Java source files. Something like the following
I am trying to understand if I really have any case for using git/mercurial.
I have a Java project which will include a number of large SQL statements
I work at a company with a large SAP investment, and we also have

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.