posted 13 years ago
Can someone throw some light on how to dynamically(at runtime) cause an XML file to be parsed (I'm using xerces.jar) and used though another instance of a parser may already be parsing it. I am facing this problem because when I parse my application XML file, there can be multpiple other users whose server side process trigger actions that could be parsing the file. My problem lies in that my request blocks on such a race condition. To avoid I am statically parsing just once and keep allentries in a HashMap and use it. But it will be nice if without sacrificing performance I could avoid the problems of parsing synchronously.