I'm still working on the conversion after two weeks. It took me probably two days to identify all the changes that had to be made, and then about 5 days of mostly search-and-replaces, and ever since then dealing with the unexpected problems during testing. One of the tough parts was that this framework only allowed a single destination page mapped to an "action", and if the flow of your logic coming out of your actions (app controllers they were called in this thing), you actually had to throw a specially-constructed custom exception class that the controlling servlet would use to redirect. Worse still, the destination was actually encoded into the exception, not simply defined in an XML file, so you had what would be in struts-config actually hardcoded in some places in the controllers!

And that was just the start of my misery! :)

I don't know if the app is any happier being on Struts, but *I* sure am! :)


From: Riyad Kalla <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: How long are your struts-config files? Should I worry about performance?
Date: Wed, 26 May 2004 15:01:21 -0700


None,
That was EXACTLY the kind of information I was looking for! Thanks for the
deatiled answer.

My god that homegrown framework must have been a beast to convert, but I bet
the app is sure happier now that its using Struts.


Best,
Riyad

On Wednesday 26 May 2004 03:00 pm, None None wrote:
> My config file for a project I'm currently working on is 7k, and that's NOT
> counting comments (something like 16k counting them - I'm a comment freak).
> Since it's only parsed once at startup, I wouldn't be too overly concerned
> about performance. Yes, your talking about a lookup for each request, and
> I'm not familiar with how it's stored internally (just a HashMap maybe?),
> but I wouldn't suspect it's a huge concern. I can't speak to how typical
> that size is of course, but it's one example.
>
> I should also point out that the app I'm referring to was originally built
> on a homegrown framework (I didn't write it, so don't laugh at ME when I
> tell you this)... it used a very convoluted mapping XML file structure,
> much more complex than struts-config, and the that version of the file was
> 43k! Again, NOT counting comments! And to make matter worse, this file was
> actually parsed WITH EACH REQUEST!! But, and here's where I get to a point
> (aside from the fact that those that wrote that framework didn't know their
> a** from their elbows)... performance even under those conditions with a
> halfway decent load (50 concurrent users at any given time on average) was
> perfectly acceptable. And it wasn't a monstrous server either (Dual
> P2-550's with 1G RAM and a SCSI array internally).
>
> So, I wouldn't be too concerned with the size of your struts-config, unless
> someone else has reason to disagree. A couple of K wouldn't concern me.
>
> >From: Riyad Kalla <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: How long are your struts-config files? Should I worry about
> >performance?
> >Date: Wed, 26 May 2004 12:36:58 -0700
> >
> >I'm curious what the size of some of the verteran programmer's
> >struts-config.xml files are. Mine is approaching 2k lines right now, and
> >I'm
> >about 1/2 done with the project I'm working on.
> >
> >I don't know if I should really start worrying about performance/other
> >issues,
> >or if this is normal and I should smile and keep working.
> >
> >Thanks!
> >Riyad
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> _________________________________________________________________
> Express yourself with the new version of MSN Messenger! Download today -
> it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Learn to simplify your finances and your life in Streamline Your Life from MSN Money. http://special.msn.com/money/0405streamline.armx



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to