You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Prashanth.S" <su...@yahoo.com> on 2004/01/30 03:45:04 UTC
[OT]caching XML object
Hi all,
How can i cache XML object in my web application?????I dont want to always read the xml file for constructing XML object....i also need a way to check weather there has been any changes between the existing object in cache and xml file???Iam using jdom....
Thanks
Prashanth
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
RE: [OT]caching XML object
Posted by "Prashanth.S" <su...@yahoo.com>.
Hi andrew,
Iam using xml for displaying,deleting,updating and adding categories in a tree like hierarchy...so i need to cache it as it will be pain to read the same xml file again and again even though it has not changed[Will be in most cases]....so how to go abt it???
Thanks
Prashanth
Andrew Hill <an...@gridnode.com> wrote:
Im not familiar with JDOM, but Ive had to do some DOM caching for standard
DOMs (with Xerces DOM impl) which proved to be a pain, as xerces DOM objects
arent thread-safe - even for reading apparently - which meant I had to clone
it from a synchronized block (thus eliminating most of the benefit of
caching it). Not sure if JDOM suffers such a constraint though.
What is the XML object being used for? There may be better ways around your
problem that dont necessarily involve directly caching and comparing the
XML.
-----Original Message-----
From: Prashanth.S [mailto:suman291857@yahoo.com]
Sent: Friday, 30 January 2004 10:45
To: struts-user@jakarta.apache.org
Subject: [OT]caching XML object
Hi all,
How can i cache XML object in my web application?????I dont want to always
read the xml file for constructing XML object....i also need a way to check
weather there has been any changes between the existing object in cache and
xml file???Iam using jdom....
Thanks
Prashanth
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
RE: [OT]caching XML object
Posted by Andrew Hill <an...@gridnode.com>.
Im not familiar with JDOM, but Ive had to do some DOM caching for standard
DOMs (with Xerces DOM impl) which proved to be a pain, as xerces DOM objects
arent thread-safe - even for reading apparently - which meant I had to clone
it from a synchronized block (thus eliminating most of the benefit of
caching it). Not sure if JDOM suffers such a constraint though.
What is the XML object being used for? There may be better ways around your
problem that dont necessarily involve directly caching and comparing the
XML.
-----Original Message-----
From: Prashanth.S [mailto:suman291857@yahoo.com]
Sent: Friday, 30 January 2004 10:45
To: struts-user@jakarta.apache.org
Subject: [OT]caching XML object
Hi all,
How can i cache XML object in my web application?????I dont want to always
read the xml file for constructing XML object....i also need a way to check
weather there has been any changes between the existing object in cache and
xml file???Iam using jdom....
Thanks
Prashanth
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org