1st, you can use Commons Chain in Struts 1.2.X. In 1.3 the request
processor is done in Chain... but a user can't tell.
You can use Commons Chain (a CoR pattern) outside of Struts.
It lets you xml configure a command to execute, or ... several commands
(hence it's called Chain) Anyone can look at XML and see where to start
reading code (just like "old" struts).
I use Chain... w/ JDNC!
I used to use IoC (hivemind) where you 1st define a sginature, etc. In
CoR... signature is allways same, and you don't have to change it to
pass in more arguments or to return more arguments or arguments change
(it's just a map/context) thus giving you less think time and more code
stability. I allso played w/ JMX to configure "commands" but... for some
reason I stoped, and only use Chain.
In 1.3 you don't have to use a chain action.
If you do use chain action... you application no longer depends on Struts!
Eventually you have many commands... and my developers cofigure a
"chain" of resuable comaands, they fit togeter w/o planing.
So a comand x from chain y can be used with command a from chain b to
from chain alpha (x + a). This was discovered by accident.
In esence, it's modular programming.. but more so.
(Now I stoped doing even that and am moving everything to Groovy to beat
up on Ruby, Python crowd w/ Java productivity... you just write so fast
and it just works, almost readable pseudo code)
hth,
Paul Benedict wrote:
Subject line says it all.
I've been contemplating this topic. The best answer I can give here is that in
Struts 1.3, you
really don't have to ever deal with an Action class at all - use ChainAction as
an entry point
into your chains. But how would you model a real world application using the
chains? Let me guess:
see the example applications :-) If there are more brilliant answers, I'd like
to hear them.
Thanks!!
Paul
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
--
thx,
.V
Your Roomity Broadband Community <http://roomity.com/demo.jsp>
cell: 917 825 3035 in DFW
email: netsql at roomity.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]