Two Laptop Bag*
The moose likes XML and Related Technologies and the fly likes Persistence and long time storage best practice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Persistence and long time storage best practice" Watch "Persistence and long time storage best practice" New topic
Author

Persistence and long time storage best practice

Karim Nasser
Greenhorn

Joined: Sep 04, 2002
Posts: 11
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
GeeCON Prague 2014
 
subject: Persistence and long time storage best practice