Font Size: a A A

Research And Implementation Of Business Exchange System Of Baishan Netcom Billing Center Based On J2EE

Posted on:2008-03-29Degree:MasterType:Thesis
Country:ChinaCandidate:S J LiuFull Text:PDF
GTID:2178360242460257Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Baishan Netcom billing center proposes a project in which the old business intercommunication system revision with C/S structure which no longer meet the requirement of the enterprise will be upgraded to the new revision with B/S structure in order to further improve work efficiency and improve the market competitiveness. The project "Business Exchange System of Baishan Netcom Billing Center" is established for the research and development.The aim of the project is to construct a safe and reliable document exchange center and information transmission platform within the enterprise relying on the existing network environment, and achieve electronic document exchange within the enterprise. The system can not only e-mail each other to exchange information, but also conduct documents transfer between the higher and lower levels, read overmarginalia, signing and reporting, archiving and so on, while the system can also complete the project management, file management, integrated query processing functions and so on, and implement centralized management of the information office data to ensure the accuracy of data sources, integrity and uniqueness. These functions of the system will greatly enhance Office efficiency and improve management levels, and the system will provide accurate and reliable information service for the managers and decision makers of the enterprise, and help enterprise achieve office modernization, Macroeconomic management and scientific decision-making.After an depth study on the working mechanism of struts, and analyzed the"Business Exchange System of Baishan Netcom Billing Center"projects, this paper designs a scheme and then implements it with Oracle9i as DBMS, Weblogic as the application server and the eclipse as the development platform.J2EE framework defines the standards of developing and running enterprise layer Web programs. It includes a suit of strong criterions on developing enterprise layer mid-components; it can provide great conveniences for the developers in enterprise-layer application development on the side of servers. Its greatest advantage is to separate the business logic layer from the view logic layer. Application Servers provide a range of services for components, it makes developers will be able to concentrate on specific areas of business organizations, and not too much concerned about complex system-layer issues of the J2EE bottom layer. JSP technology is not only the most rapid development technology, but also is the most widely used technology in J2EE. Now the quite available development model is the JSP Model2 based on the MVC design views. In the JSP Model2, Servlet which is responsible for the users'requests and produces JavaBean Objects used by the JSP pages, and then chooses the appropriate JSP pages to return to the user according to the user's request, plays the role of controller.Struts is essentially an MVC framework based on JSP Model2, In Struts framework, "Model" is composed of JavaBean or EJB components which implement the business logic layer, "Controller" is implemented by the ActionServlet class and Action class, "View" is composed of a series of JSP documents, These documents simply show JSP website code, there is no business logic code in them, and also no model information through labels to show the corresponding data. "Model" indicates the states and business logic of the application. The business logic Usually is implemented by JavaBean or EJB. Controller is the core components of Struts framework, Which is implemented by ActionServlet class and Action class. ActionServlet class is the core class of the Struts framework, which plays the role of a central controller in the MVC model, and is responsible for calling the methods of the model, updates the model states and controls the application process.After a detailed analysis of the project " Business Exchange System of Baishan Netcom Billing Center ", there are some capabilities with which the project should be provided.1) Good interaction, the system should has a good man-machine interface, with an easy-to-use features; 2) better scalability, components used in the form of development of the system after the upgrade and expansion to prepare; 3) good maintainability, ease of maintenance and debugging the system; 4) Good report generation function. Based on the above points, in line with the norms based on J2EE programming, Struts framework is used as the main framework.In the system design phase, the system is developed according to MVC mode which is complied with the Struts framework, at the same time the design has given attention to the reusability feature and loosely coupled feature which are advocated by object-oriented technology, and exerts much effort to make system be the best in the aspects of expanding, easy use, easy maintaining and safety.ActionServlet instance accepts all the HTTP requests in the program flows, then according to the configuration file struts-config.xml, the system decides that the requests should map to which Action instance. Firstly Action object should call the"validate"method included in ActionForm in order to simply check up validity of the data, after passing the checking-up Action object's"execute"method is called for complex data validating and then determines the system's direction, simultaneously Several common used business transactions are encapsulated in classes, they are caseClass class which is used to deal with the type of incidents, and page class which is used to deal with pagination, and MD5 class which is used for password encryption, which greatly increase the reusability and reduce the coupling.In reports generating module, JasperReports and iReport will be integrated into the Eclipse development platform, and these two plug-ins mentioned above will be used to design and generate reports.Eclipse and myEclipse plugin are used as the development platform, and the plugin is considered as a standard tool for Struts, which is compatible with the struts1.1 struts1.2, and has easy configuration, easy to use, and high development efficiency features, coupled with its visual interface provided, all of these make the entire proceeding clear and easy, and easy to maintain, easy to modify, and also greatly enhance the development progress of the system.In the structure, Weblogic application server is used in the system, to enhance the safety of the system, the system configured data sources by using configuration files, and this approach facilitates the database transplant. Users'passwords are encrypted by MD5, which is good for preventing personal information from leakage. In order to avoid Chinese characters mistakes, the system uses a resource document to transform Chinese information, and then we can use them. At the same time there is a setting filter parameter in web.xml file, which can guarantee Chinese characters access to the database correctly.There are the following virtues on adopting Struts as the system's main framework after implementing the system: 1) the success of Struts framework is used for reference, avoiding the risk of designing new models, reducing the time of designing the system, and guaranteeing the system reasonable. 2) The system takes advantage of MVC design model complied by Struts, divides up the program reasonably, makes its process clear, and makes it easy to debug and maintain.3) The system implements the separation between web page code and logic layer code, with the client labels provided by Struts, it can located the place where some mistakes emerge, this enhances the debugging efficiency. 4) The business logic layer of the program was implemented by JavaBean; it advances the code reuse, and reduces the coupling relationship among all layers. 5) The system takes advantage of the data source provided by Struts, this approach is not only convenient, flexible, but also makes the database pool technology be achieved, advances the system the executing efficiency.
Keywords/Search Tags:J2EE, MVC, Struts, JasperReports
PDF Full Text Request
Related items