| The integrated rewards service is based on the POS machines and enterprise resources that cover all over the business fields, and in order to unify all kinds of reward cards. It will promote consumption and stabilize loyalty of the customers. So the integrated rewards system will realize that enterprise resources are shared in many fields and special service methods and new growth of the profit are implemented. The rapid development of the software and hardware technology in recent years provides a well outer support to that need.In this paper the integrated rewards system based on J2EE is designed and developed. It comprises rewards management system and rewards process system to provide multi-fields, multi-methods, multi-parameters rewards management platform for the enterprise union and deal with real-time POS processing.After investigating the architecture and requirements of the integrated rewards system, the paper describes the framework of rewards management system and rewards process system based on design patterns such as session facade, business delegate, data access object, value object and front controller. It is a reasonable, safe, reliable expanding platform. The kernel business layer is implemented by EJB components. Some adjustments are made for bottleneck performance requirements. It is designed to access database directly otherwise using entity beans, get part of the rows and display page by page for read-only operation of large-scale data. In addition, message driven beans are imported into the system to implement the asynchronous POS data process that improves the performance greatly. In the paper one of kernel business logic functions, rewards rules module, is taken as an example to exhibit how to make the business module more extendable and reusable by strategy pattern and chain-of-responsibility pattern. It founds a reliable logic structure for system updating and maintenance.At last, the system is implement using IBM Webshpere and others develop tools, and the ways to use message-driven beans, receive primarykey values for entity beans by means of sequence-block are discussed in the paper. |