Chapter 4. Singleton resources

In the previous chapter, we saw how to implement a single-resource stateful web service. We did this the simplest possible way: implementing the service and the resource in the same class. In this chapter, although we will continue to have a single resource, we will learn more about the preferred way of implementing web services in GT4: using a separate class for the service and the resource. To do this, we will learn more about resource homes.