Here's a screen-cast on a simple routing and service chaining sample that I did some time back. Hope it helps you to understand how to chain services using the WSO2 ESB.
The complete list of configuration files can be found here.
The complete list of configuration files can be found here.