You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Bruce Woods <Br...@Overture.com> on 2005/03/22 01:14:41 UTC

Infrastructure for concurrent processing within Struts Action classes

 I am currently developing an application that is report intensive.. The screens will require several "report" queries to the database and I would like to be able to run the queries in parallel, as part of my struts Action.. 
 The development team I am working with is in the process of transitioning our home-grown MVC framework to struts. Unfortunately, this is one piece that our existing MVC supported that is lacking in struts. This "parallelism" was integrated into the command processing infrastructure (which is very similar to the Command Chaining being added in Struts 1.3). 
 Any idea if any future struts infrastructure has been designed that may support this type of parallelism ?

thanks,
 Bruce Woods

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Infrastructure for concurrent processing within Struts Action classes

Posted by Martin Cooper <mf...@gmail.com>.
On Mon, 21 Mar 2005 16:14:41 -0800, Bruce Woods
<Br...@overture.com> wrote:
>  I am currently developing an application that is report intensive.. The screens will require several "report" queries to the database and I would like to be able to run the queries in parallel, as part of my struts Action..
>  The development team I am working with is in the process of transitioning our home-grown MVC framework to struts. Unfortunately, this is one piece that our existing MVC supported that is lacking in struts. This "parallelism" was integrated into the command processing infrastructure (which is very similar to the Command Chaining being added in Struts 1.3).
>  Any idea if any future struts infrastructure has been designed that may support this type of parallelism ?
> 

This doesn't sound, to me, like something a framework like Struts
would provide. I would think that it would be up to your Action to
invoke some (Struts-independent) method that handles the parallelism
for you. (Think 'runInParallel(queries[])' or something of the sort.)
In fact, since you already have code that can do this kind of thing,
you might be able to just pull that out of your old framework as an
independent component that provides the parallelism, independent of
the Struts-ness of your new app.

--
Martin Cooper


> thanks,
>  Bruce Woods
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Infrastructure for concurrent processing within Struts Action classes

Posted by Joe Germuska <Jo...@Germuska.com>.
At 4:14 PM -0800 3/21/05, Bruce Woods wrote:
>  I am currently developing an application that is report intensive.. 
>The screens will require several "report" queries to the database 
>and I would like to be able to run the queries in parallel, as part 
>of my struts Action..
>  The development team I am working with is in the process of 
>transitioning our home-grown MVC framework to struts. Unfortunately, 
>this is one piece that our existing MVC supported that is lacking in 
>struts. This "parallelism" was integrated into the command 
>processing infrastructure (which is very similar to the Command 
>Chaining being added in Struts 1.3).
>  Any idea if any future struts infrastructure has been designed that 
>may support this type of parallelism ?

I don't think anyone has ever identified this as a use case which 
Struts could or should support.  I don't immediately see how you make 
the connection between the ComposableRequestProcessor and any kind of 
parallel processing, but then I think your entire design approach is 
kind of new to me.

Ideally, the ComposableRequestProcessor makes it plausible for you to 
add something like this parallel processing by modifying the request 
processing chain, whether or not Struts adds specific infrastructure 
for that into its core.

If you want to describe in more detail the use cases and how you 
implemented a solution in your existing framework, we could probably 
figure out an analogous way to achieve it in Struts.

Joe

-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
"Narrow minds are weapons made for mass destruction"  -The Ex

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org