>> PS Does anyone else use WW without the web? (ie as a generic command pattern
>> framework?) I think there are a lot of improvements we could make in this
>> area.
> 
> I've implemented a basic RMI framework for our content management
> product using it, and the ClientServletDispatcher. Trivial RMI in three
> classes, and without the hassle of having to implement Remote interfaces
> (i.e. no RemoteExceptions). We'll also be using it later on in
> application to send commands from the client applet to the server in
> order to execute a bunch of things there (instead of doing many
> applet/server calls).
> 
> /Rickard

Rickard,

Great stuff - I think there's a lot of cool things WW can do to become an
uber-command framework.

For example someone (Noah?) sent me via email his ActionPool implementation,
which is a funky idea!

Basic usage is something like this: (an ActionPool is just an Action with
special powers!)

ActionPool pool = (ActionPool)ActionFactory.getAction("poolImpl");
pool.setSize(2);
pool.addAction(anotherAction);
pool.addAction(anotherAction2);
pool.addAction(anotherAction3);
pool.addAction(anotherAction4);
pool.addAction(anotherAction5);
pool.execute();

This will now execute the 5 pooled actions simultaneously (using up to
pool.size() threads) and execute will return when all other actions have
been executed and when the last one completes.

Funky stuff!

If I get time, I'll clean it up and submit. (I think that's why he sent it
to me - I forget)

Yell if you want it.

Cheers,
Mike



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to