• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sriram T
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic