Hello

Each valve in the turbine3 pipeline is invoked(), then invokeNext().
Just like tomcat.
This seems ok, but why is this better than doing a for in each valve,
and invoking it. Because this way the stack becomes so huge!

I mean, instead of doing this:

(TurbinePipeline.java)
   public void invoke(RunData data)
        throws TurbineException, IOException
    {
        // Initialize the per-thread state for this thread
        state.set(new Integer(0));

        // Invoke the first Valve in this pipeline for this request
        invokeNext(data);
    }

Doing something like:

  public void invoke(RunData data)
        throws TurbineException, IOException
    {
          for (int i = 0; i < valves.length; i++)
        {
            valves[i].invoke();
        }
    }

This way it would be a Pipeline calling the valves, the otherway the
valve calls the next valve.

And why exaclty it throws IOException?

Paulo


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

Reply via email to