468,505 Members | 1,739 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

parallel updates to an xml

2
Hi

I have to create a log file in xml format. Could anyone please suggest how the following can be achieved:

1. There are many parallel threads. How can we ensure the integrity of the xml file when parallel threads are trying to write to the same log file i.e. the structure of the xml should not get spoiled. Each thread should add/delete only those xml tags that it should

2. Since many parallel threads are updating the same xml file, how can we ensure that the system performance does not become too bad.

Thanks
Oct 13 '12 #1
2 1315
Luuk
1,043 Expert 1GB
"how can you ensure integrity:
You cannot keep integrity of the XML without loosing performance

"how can you ensire performance":
Make it a flat-file where you're logging to. Others, like apache and mysql, do the same, and not for a bad reason.
Oct 13 '12 #2
pa7751
2
Thanks for the reply Luuk. Could you advise if it is possible to create a log file in some custom xml format using Log4J or SL4J
Oct 13 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by paytam | last post: by
11 posts views Thread by lovecreatesbeauty | last post: by
5 posts views Thread by Kiki | last post: by
43 posts views Thread by parallelpython | last post: by
1 post views Thread by smithken04 | last post: by
3 posts views Thread by John | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.