Re: XML configuration and performance
Tomás Pollak wrote: Hello all, I am currently working on a development project for a web system using Struts 1.2.9. It is a fairly large system that has been under development for more than three years now. During the code-test-and-debug cycle we are forced to restart the server several times, and we have noticed that reading the XML configuration files is what takes most of the time ( struts-config.xml, validation.xml and tiles-defs.xml), approximately 30 secs. These files are pretty stable now, so having to pay the price to parse the XML every time seems unnecessary. I was wondering if there is an approach to configure a Struts application using code instead of XML files. Has anyone bumped into this problem before? Is there a tool to transform a Struts/Tiles/Validator XML file into a Java class that produces the same configuration? I could not find anything in the documentation. Unfortunately I don't believe such a facility exists. You may be able to reduce cycle time by hot deploying but that's the best I can offer :-/ Well, either that, or rewrite it all in Rails ;-) L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML configuration and performance
On 10/26/07, Laurie Harper [EMAIL PROTECTED] wrote: Tomás Pollak wrote: These files are pretty stable now, so having to pay the price to parse the XML every time seems unnecessary. I was wondering if there is an approach to configure a Struts application using code instead of XML files. Has anyone bumped into this problem before? Is there a tool to transform a Struts/Tiles/Validator XML file into a Java class that produces the same configuration? I could not find anything in the documentation. In theory you could find the point in the code where the files are loaded, and check to see if serialized versions of the xml tree are available, if they are load them directly using the Serialization support in Java, if not load the XML and Serialize the results for next time. As I mentioned, this is just theory, I have never even thought of trying something like this and I have no idea how much faster it would be than just parsing the XML, it might not be worth all the work. (*Chris*) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XML configuration and performance
Hello all, I am currently working on a development project for a web system using Struts 1.2.9. It is a fairly large system that has been under development for more than three years now. During the code-test-and-debug cycle we are forced to restart the server several times, and we have noticed that reading the XML configuration files is what takes most of the time ( struts-config.xml, validation.xml and tiles-defs.xml), approximately 30 secs. These files are pretty stable now, so having to pay the price to parse the XML every time seems unnecessary. I was wondering if there is an approach to configure a Struts application using code instead of XML files. Has anyone bumped into this problem before? Is there a tool to transform a Struts/Tiles/Validator XML file into a Java class that produces the same configuration? I could not find anything in the documentation. Thanks in advance, Tomas