« Agile Business Methodology | Main | Windows Workflow Foundation »

2005.09.10

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341c9edc53ef00d834e8fec869e2

Listed below are links to weblogs that reference Using Commons Chain in a Spring Framework Application:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Wim
Hmmm "not Springy"... I thought that the default behaviour of Spring was to use singleton bean instances, unless otherwise specified in the bean definition.
simbo1905
There is some sample code at the link below where spring beans are used in the chain so that they can be IoC configured. That would seem more springy than naming the concrete class to use which is the default way that chains does it as shown in step 3 of this blog. http://www.drummondsoftware.com/WhitePapers/SpringChain/SpringChain.htm
tom
Could this not be much simpler and a lot more 'springy' by simply defining your commands and chains in the application context itself rather than using a seperate config file:
<bean name="myCommand1" class="MyCommand1"/> <bean name="myCommand2" class="MyCommand2"/> <bean name="batchSendChain" class="MyCommandChain"> <property name="commands"> <list> <ref bean="myCommand1"/> <ref bean="myCommand2"/> </list> </property> </bean>

The comments to this entry are closed.