Hi folks! I need to map the root of my site to a particular ActionBean. Now, the simple way to do this is of course to use a welcome-file-list in web.xml (Tomcat 6.0.x):
<welcome-file-list> <welcome-file>action/mybean</welcome-file> </welcome-file-list> but unfortunately this carries a fairly heavy performance penalty: compared to accessing action/mybean directly, the performance on EC2 Large instances is up to 100ms slower - and I'm seeing a definite bump in CPU usage as well (about 5x of what I would use normally). On my local OSX box the difference isn't that bad, but I'm still seeing it, especially the CPU usage. There's no considerable IO. So it seems that the welcome-file solution is less than ideal in my environment, and before I go and start ripping the guts out of it (or worse, changing my production environment), I'm wondering if there's a simple and clean way to resolve this the Stripes way. I see http://stripesframework.org/jira/browse/STS-688 has some discussion. Would a custom Servlet Filter be the best solution here? If so, then how would I invoke a particular ActionBean from it? (Here's the interesting part - it's slightly *faster* to have an index.jsp redirecting with 302 to /action/mybean than have the /action/mybean as the welcome-file. However, I want to steer away from redirects, since 1) I want clean URLs, and 2) redirects can be quite bad for performance, especially on mobile networks. And 3) it bothers me that this should really be faster than have an extra redirect loop... I'm wondering if having an ActionBean as a welcome-file somehow confuses Tomcat when the file does not exist physically.) /Janne ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users