concept transactional method in category java

This is an excerpt from Manning's book Portlets in Action.
The Spring IoC container uses the application context XML file to instantiate and initialize application objects and inject dependencies, which effectively saves you the effort of writing boilerplate code in the factory class. Because the Spring IoC container only takes the application context XML file as input, you can configure Spring Framework features in the application context XML. For instance, you can define transactional methods in the application context XML, and the Spring container takes care of invoking the methods within a transaction. For a detailed set of features offered by Spring Framework, refer to the Spring 3.0 reference documentation.
Listing 9.14 defined which transaction manager to use for managing transactions, but not which methods are transactional in nature. In Spring, you can define transactional methods using Spring’s @Transactional annotation, as shown next.