| EJB is a kind of cross-platform component architecture which is used for developing and deploying multi-tier structure, distributed, object-oriented Java application. This paper firstly introduces J2EE technical specification briefly, then it explains the EJB architecture and its components. Meanwhile, it has carried on research to session Bean, entity Bean and message-driven Bean respectively, and has made a concrete analysis of their life cycle and characteristic.EJB is suitable for developing the distributed application system, through offering the unified developing platform, it reduces the complexity of developing multitier application, and offers powerful support for the integration of the existed application at the same time. At present, EJB systems exist some problems, mainly as follows: tight coupling, which leads to direct dependence between clients and business objects; too many method invocations between client and server, leading to network performance problems; lack of a uniform client access strategy, exposing business objects to misuse, may cause security problems. To the above problems, this paper proposes the three-tier application model based on EJB, and its implementation method is also discussed.EJB is suitable for the development of electronic commerce system, but using EJB to develop electronic commerce system will cause problems as performance and maintainability, etc., and even the security problems. In order to solve these problems, on the basis of the three-tier application model based on EJB, this paper puts forward the electronic commerce development model based on EJB. This model applies the three-tier application model based on EJB to electronic commerce system development, and this paper realizes the model through the development instance of a electronic commerce system. |