This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Can we store the data from data base to a XML file and avoid contacting data base Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Can we store the data from data base to a XML file and avoid contacting data base" Watch "Can we store the data from data base to a XML file and avoid contacting data base" New topic
Author

Can we store the data from data base to a XML file and avoid contacting data base

Sriram T
Greenhorn

Joined: Sep 10, 2002
Posts: 7
Hello,
I am using EJBeans for my project,It is for displaying the product information provided in a mall.Can we use XML files to store the data and avoid the complexity of contacting database every time.....will there be any problem in storing the data from data base in a XML file....is there any limitations for XML files.
I want to update the XML files when ever data base is updated.Will it be a good approach to the solution which I need???
Pls Help me......
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
This is a classic example of read-mostly.
I would first check to see if your application supports read-mostly beans so you don't have to mess with writing your own caching. Almost all application servers handle caching in some form for entity beans, check your server documentation to see the different forms.
For example WebLogic supports:
Read-Only, Read-mostly, and Database Eclusive Entity Beans.
All demonstrate different levels of caching.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we store the data from data base to a XML file and avoid contacting data base
 
Similar Threads
Stream data directly into ZipOutputStream?
Tackling large size XML files
Hibernate with RSS Feeds.
Can i append data to existing XML file?
XML to database