Chapter 5. Mobile Design Patterns: The Smart Ticket Blueprint CHAPTER OVERVIEWJava Technology BlueprintsSmart Ticket in ActionPatterns and TechniquesThe Model-View-Controller PatternThe Remote Facade PatternChained Data HandlersBinary Remote Procedure Call Over HTTPAdvanced Threading Model Sun's Java Blueprints is a program to promote good design practices among Java developers. The blueprints cover a wide range of Java technology application areas, including J2EE, Web Services, security, and mobility. The Wireless Blueprints contain a sample application and a design guidelines white paper for end-to-end mobile commerce solutions. The wireless blueprints' Java Smart Ticket sample application is a mobile movie ticket-ordering system with a J2ME/MIDP wireless front end and a J2EE application server back end. It showcases a number of important design patterns and best practices for end-to-end mobile applications. Using the Smart Ticket sample, we study the mobile design patterns in this chapter.We start with a quickstart guide on how to install and run the sample application. Then, using the source code, we analyze the key architectural patterns and their benefits. In the last section of this chapter, we review important behavioral patterns and coding techniques used in the implementation. |