Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Persistence and long time storage best practice

 
Karim Nasser
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
My application needs to store a business object as XML, no fancy processing is needed on the XML , just reading and writing the business objects on the files system for long storage, what is the best practice, I am new to XML worl in java, I can see alot of parsers and alot open source packages that can do the job (xerces,digester,dom,sax...), what is the best approach to do this
best regards
Kareem
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to check out XMLEncoder (part of J2SE 1.4) and XStream (very simple mapping between classes and XML) as well as consider the use of an XML database such as eXist or Xindice (depending on your needs for querying the serialized business objects).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic