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]

Reply via email to