To get the sample code for the book, use your Safari account.
Download this sample code (740k), developed by my colleague Kevin and me. These examples illustrate a few basic SOA concepts, and show ESB, BPEL, and basic EJB 3 SOAP Web Services. It includes an extensible Ant build template and JUnit 4.4 tests. This code is just a sample written for the JavaOne 2008 presentation, "Designing and Building a Real World SOA".
This code works out of the box with NetBeans 6.1, Glassfish v2, and Open ESB v2.