Why are there so many Enterprise JavaBeans (EJBTM) components in the Java Pet Store Demo? Are all of them really needed?
A. The Java Pet Store Demo strives to provide as many examples as possible of the many features and benefits that Enterprise JavaBeans (EJBTM) technology provides. The application design reflects our intent to show as many examples as possible of effective use of enterprise beans. Your application’s requirements determine where enterprise beans are appropriate. Once you’ve determined where to use enterprise beans, you can find examples the Java Pet Store Demo for how to do so effectively. The Java Pet Store Demo is an educational tool focusing on demonstrating patterns and best practices espoused by Java Enterprise BluePrints. In many places, we’ve sacrificed performance in order to clarify the code or to make a particular design point.