Implementing the Chain of Command pattern using Commons Chain

OnJava.com have a good article on their site giving and overview and code examples on how to use the Commons Chain library to implement a solution using the Chain of Command pattern.

The interesting thing about the Commons Chain implementation is that the commands that are used in any one process are configurable externally via an xml file, which allows you to alter the order of commands or the command themselves without any code changes.

Part 2 of the article shows how Commons Chain is being used in Struts 1.3.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.