Design & Implementation of Devanning/Container ...

5 downloads 64810 Views 544KB Size Report
In this paper, a tally Devanning/Container Loading business system based on the ... application resources of enterprise and reduced the degree of coupling between system ... information technology is penetrating into other industry. Business ...
Design & Implementation of Devanning/Container Loading Management System Based on Lightweight Framework Wu Di1, Dong Xin2, Huang Penghe1, Bai Yan1, Li Yanhui3 1

Software Technology Institute, Dalian Jiaotong University 2 School of Foreign Language, Dalian Jiaotong University 3 Augmentum, Inc. [email protected]

Abstract—It is necessary, for a modern enterprise, to solve the urgent problem that how to effectively integrate enterprise existing resources and increase overall operational efficiency. In this paper, a tally Devanning/Container Loading business system based on the lightweight framework of J2EE(Spring + Hibernate + Struts) was implemented, according to the detailed analysis of business requirements and goals achievement. Firstly, this paper constructed framework for Devanning/Container Loading Management System. Secondly, it achieved the following aims, such as the acceptance and distribution of plan for devanning and dontainer loading, write-offs, a license management, statistics management and rights management. Thirdly, it established a customer-oriented data interface and a variety of security policies. Finally, the Devanning/Container Loading management system has been integrated into the entire enterprise management information system. The system effectively integrated the existing application resources of enterprise and reduced the degree of coupling between system modules. It achieved the aim that optimization approach can be used to deal with the complex Devanning/Container Loading business and the operation efficiency of enterprise was vastly improved.

II.

Devanning/Container Loading business of tally enterprises has the features as followed: handling areas were scattered and large amount of business, for example, clerk accepted the commission on a daily average of about 300500 or so. Considering the system security and reliability with the expansion of the core business enterprise, Devanning/Container Loading management system should have the following features: 1) Friendly interface, simple and quick operation, Meet the requirements of fast input by operators. 2) To meet the needs of new business development, establish an application of flexible mechanism system, lay the foundation for the expansion of new business development. 3) To provide detailed statistical analysis of data, provide comprehensive support for the strategic decisions of the company. 4) To establish flexible access control mechanism, Strengthen the department of access control in all tally. Devanning/Container Loading Management System can be mainly divided into two modules: Devanning Management and Container Loading Management (Figure 1).

Keywords-J2EE; devanning/container loading; lightweight framework;

I.

FUNCTION ANALYSIS

INTRODUCTION

With the rapid development of information industry, information technology is penetrating into other industry. Business enterprises competition is being focused on industry information. It is necessary, for a modern enterprise, to solve the urgent problem that how to effectively integrate enterprise existing resources and increase overall operational efficiency. J2EE technical framework is essentially a distributed server application environment. Because of its good scalability, flexibility and easy maintenance, it has become a reliable mechanism and effective means of the construction of modern enterprise system. Based on the analysis of the Devanning/Container Loading, given the features of the Lightweight framework of the J2EE technology, this paper made an implementation of Devanning/Container Loading Management System, which facilitated business operation on the cross-platform and expended the core business.

_____________________________________ 978-1-4244-5539-3/10/$26.00 ©2010 IEEE

446

Figure 1. Business process diagram of Devanning/Container Loading

application process, and deployment of enterprise application process. This framework also provided distributed multi-tier application process model. The logic of the application process can be encapsulated into components through its different functions. A large number of application components which composed the J2EE applications will be installed to different machines according to its layer in the J2EE environment (Figure 2). [1][2]

From its function, it contained following nine parts: 1) Acceptance of Plan Implementation of the plan accepted by hand unpacking or through electronic way and the implementation of the plan accepted by hand packing. 2) Distribution of Plan Implementation of the plan distributed, when it builds programs to deal with the plan accepted, the plan distributed can be also done, which includes unpacking plan to distribute management and packing plan to distribute management. 3) Confirmation and Dispatching of Assigned Work Checking the regional distribution plan and changing plans based on the combined conditions (the date, acceptance locations, etc.) so as to confirm the plan and assign the work. 4) Write-offs Based on the following factors, on-line write-off can be processed, for example, lading No. of the bill, date, box No., CFS Consolidation, Distribution of goods, upload and modify the tally image. At the same time, it can check the clearance of ship/time according to time, and then carry on other related process.

Figure 2. J2EE 3-tier architecture

5) External data interface This system will provide the external data interface, and automatically accept the external data for the system to use, rather than enter the system through entry way.

J2EE framework formed by two parts, including JSP, servlet, EJB, Java Bean technology for developers and J2EE containers (Figure 3).

6) The license management This system will make an implementation of issuance a user-defined/impairment certificate, Image upload management and the card printing. 7) Statistics Management This system will deal with the accepted planning and statistics, it will also deal with the implementation of the statistics, boxing statistics and comprehensive statistics. 8) Rights Management The rights design is based on the organization of enterprises and personnel management. Personnel are not allowed to make inquiry cross departments or cross areas, and they are not allowed to make operation cross departments or cross areas. 9) System Settings This system will achieve the following aims: maintenance of customer information, maintenance of tally unit information, maintenance of tally business information, maintenance of goods information maintenance of cost information. III.

Figure 3. J2EE component architecture

IV.

DESIGN AND IMPLEMENTATION

A. Technical Framework of System The system used J2EE framework and the multi-tier architecture model based on B/S and made the business logic, data access and data presentation decoupled. Therefore, the system will have clear logic and superior functions which facilitated the separate evolution of all levels to adapt to the needs of changing system (Figure 4).

J2EE FRAMEWORK

The full name of J2EE is Java2 Enterprise Edition. This framework provided a new method based on the components for the design of enterprise application process, development of enterprise application process, assembly of enterprise

447

system, such as Log4j, EhCache, Dom4j, and so on. Log4j can record the system operation log. When an exception occurs, we can get the detailed operation logs. With the database cache technology, EhCache can greatly increase the efficiency of data queries, and the system performance is adjusted accordingly. Dom4j can provide faster operations for XML. B. Security Design The security is essential for operation system. Thus, the security design of this system was taken fully into account. The security issues can be found in the following areas from technical angle.

Figure 4. Framework of Devanning/Container Loading Management System

1) The unauthorized person can use the functions of the system; 2) The unauthorized person can operate or browse the data of the system; 3) Data loss because of the error operation; 4) Accountability after security incident; 5) System recovery from the crashes. The system has the corresponding protection in the database server, application server and software system, which greatly protected the security of system.

1) Object-Oriented Analysis and Design Methods In this paper, we used Java language and object-oriented (OO) approach to design and develop the system. The Object-oriented approach analyzed and designed the system through inheritance (Expand the existing categories to generate proprietary class inherits the capacity of state and behavior of the original class), encapsulation (Hide implementation details), polymorphism (the same message will be sent to different objects, so that each object in a predetermined manner has the ability to respond to the same message)and dynamic binding(in programming, the approach has the ability to send messages to object without knowing the specific type of object ). The Object-Oriented approach is superior to the original process-oriented approach.

1) In this system, the function authorization and the data authorization model are combined to solve the data security issues. All the functions of the system must be authorized before they can be used. The superior departments can browse the data of lower departments, however, the lower can not check a higher level’s data and the same level departments can not check the data each other if they have not been authorized. 2) With good exception-handler, this system can deal with the error operations automatically and reduce the error operations. 3) All of the key data is recorded so as to we can get some important information, such as the modification time, the modifier’s account and the address of computer. 4) Single deployment is used in this system in order to get faster recovery after a disaster.

2) Lightweight Framework ( Spring + Hibernate + Struts ) The development of this system was based on lightweight framework. Business logic will be better encapsulated, and the non-invasive development and excellent handling of complex business will be achieved through Spring. Moreover, we can map the relational databases onto the objects and make the complex operations of relational database more flexible by use of Hibernate (OR Mapping). At the same time, with Struts framework, we can also fully show the MVC design pattern, make all tiers processing clearer and greatly reduced the degree of coupling between the modules.[3-7]

C. Implementation Overall, in order to reduce the degree of coupling between business logics of this system, and improve the scalability of this system, the system implementation will be divided into three tiers: presentation tier, business tier and persistence tier.

3) the Advanced Web2.0 Technology The traditional web technology makes page refresh and leads to “white screen” frequently. Frequent refreshment also makes the pages and background system heavily loaded. With the Ajax, we can update the pages without refreshment and enhance the interactivity between users. Because every page only gets what it need, the ease of use of the system is strengthened significantly.[8][9]

1) Presentation Tier This tier used the Struts 2.0 with MVC model, which unified control (Control) the presentation of system (View) and the background logic object (Model). Model of the system is abstracted as goods, expense, clients, tally enterprise, etc.

4) The Excellent Third-party Open Sourced Component Technology The application of excellent third-party open sourced component technology can improve the availability of the

The core code is as follows:

448

public class BoxingAction extends ActionSup implements SessionAware { @Validations Pulic String loadGoods(){

lightweight framework can greatly reduce the degree of coupling between the modules and achieve the excellent handling of complex business; 2) The application of B/S architecture don’t need to install the additional client software and reduce the cumbersome processing of installation and maintenance; 3) This system has good cross-platform performance, and can be used in windows, Linux and Unix; 4) This system has good flexibility and scalability and can save the investment cost of users ; 5) This system uses distributed server application environment, which can reduce the transmission pressure of data. It also can improve the overall efficiency of the system; 6) This system use the advanced Web2.0 technology and enhances the ease of use of the system; 7) Multiple security policies are used in this system and provide good guarantee for the safety of the system.

2) Business Tier This tier used the Spring 2.0 with interface-oriented methods in order to encapsulate the operations of business objects. With IOC of Spring, we can reduce the dependence between the business objects. At the same time, the consistence and rollback of transactions can be authenticated through configuring the interface-level transactions. The core code is as follows:

ACKNOWLEDGMENT The authors are grateful to Bai Yan and Luan Tian of Dalian Jiaotong University for their kindly assistance.

3) Persistance Tier This tier used the Hibernate 3.0. The data was stored in MySql database in this system. The data accessing was encapsulated in the form of the finest grain and the basic transaction processing was provided so as to be integrated further by business tier.

REFERENCES [1] [2]

The core code is as follows:

[3]

public class HibernateDaoImpl extends HibernateDaoSupport implements Dao { public void remove(T obj) throws DaoException {

[4] [5]

V.

CONCLUSION

The core of J2EE framework is to establish the effective Devanning/Container Loading management system and provide an effective model for expanding business. This system based on the lightweight framework of J2EE was implemented and effectively integrated the existing application resources of enterprise and reduced the degree of coupling between system modules.

[6]

[7]

[8]

This system has the following advantages: 1) The development of this system is based on lightweight framework (Spring+Hibernate+Struts). The

[9]

449

Zhu Zhaoyou, Dai Shenghui, “J2EE-based enterprise ERP system design and implementation,” iccsit, pp.509-512, 2009. John Hunt, Chris Loftus. “Guide to J2EE: Enterprise Java,” Tsinghua University Press. 2004 Jia Guixia, Li Xianglin, Liu Bing, “Design and Implementation of MVC Mode Based on Lightweight J2EE Architecture,” Journal of Gansu Lianhe University(Natural Sciences), vol. 23, No. 2, May 2009. Shao Shuyi, “Lightweight Structure of the Internet Business System,” Computer Knowledge and Technology, vol. 5, No. 3, 2009. Zhao Yang, Zhang Li, Wang Endong, Zhang Suning, “Research of J2EE Based on Struts, Hibernate and Spring,” Modern Electronic Technique, No. 2, pp. 107-110, 2009. Zhou Bishui, Su Guoqing, Wu Qing, “Research and Application of a Trusted and Light Weight J2EE Framework,” Journal of Hangzhou Dianzi University, vol. 29, No. 3, 2009. Hu Qimin, Xue Jinyun, Zhong Linhui, “Lightweight J2EE Architecture Based on Spring Framework and it’s Application,” Computer Engineering and Applicolion, vol 44, No. 5, pp. 115-118, 2008. Sun Qian, “Study on the Meaning, Characteristic and Application of Web 2.0,” Morden Information, vol. 26, No. 2, pp. 69-70, 2006. Wang Weijun, Sun Jing, “The Summarization of Research and Application of Web2.0,” Information Science, vol. 25, No. 12, pp. 1907-1913, 2007.