Looks like a minor typo in the Chapter2 Section "Callback Methods". This section mentions:
In the case of the SearchFacadesession bean, we could add a PostConstruct callback method (destroyWineList()) into the SearchFacadebean, which would clear the country wine list whenever the bean gets destroyed. Ideally, during PostContruct, we would close any resources that have been created with dependency injection; but in this chapter, we will just clear the HashMap that has the countries and wine list.
Listing 2-7 shows the destroyWineList()code.
Listing 2-7.The PreDestroy Method
@PreDestroy
public void destroyWineList()
{
countryMap.clear();
}
Should have been:
Is there any place where i can submit this errata?