Paul Speed wrote:
>
> [EMAIL PROTECTED] wrote:
> >
> > Can you argue about how Valve's single chain of command ( where
> > authentication, generation, etc are done in a single invoke() ) can
> > be better than what all other server are doing ( and Apache 2.0
> > moves to a different level with the flexible HOOK mechanism ?
> >
>
> Actually, this is a discussion I would like to see happen. I
> think that I can actually argue for Valves. Admittedly, I know little
> about the actual implementations but I am very familiar with the
> patterns used in Tomcat 3.x and Tomcat 4.x and I have seen much of the
> discussions on this list. However, in other projects I have converted
> several architectures using patterns similar to 3.x to be more like the
> Valve approach. We did it to shorten development times and improve
> developer productivity. Performance wasn't our main goal but in all
> but one case performance improved.
>
> What I would like to see is a frank analysis of this topic.
> If those "in the know" do not have the time then I will attempt to
> do a brief analysis myself in the coming weeks. It will take research
> on my part whereas some of you might know the answers off the top of
> your head.
>
> What I intend to compare is the typical method call sequence
> of the two approaches, including resource allocation if any, when
> handling various types requests. From there I hope to point to the
> relative merits and tradeoffs of each approach.
>
> I have fun with this kind of stuff... it harkens back to
> my old graphics programming days. It's almost always surprising
> what this stuff will turn up.
You may want to take a look at this:
<http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat-4.0/catalina/docs/Attic/filters.html?rev=1.2&content-type=text/vnd.viewcvs-markup>
It's a comparison of the Valve and Interceptor model, written by
Craig some time ago. For some reason it was deleted from the
repository 2 days ago, with the comment "Remove obsolete file",
but I believe it's still valid at least as an overview.
Craig, why did you remove it?
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]