The Research and Application of Lightweight Framework in J2EE

Author
ChenYunWang
Advisor
WuZhenHua
School
Beijing Jiaotong University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2007
Downloads
303
Citations
1

Request the full text

Abstract

With the large-scale application of J2EE technology, EJB technology has been widely questioned. EJB technology to J2EE application development complexity and huge overhead. Reduce the the J2EE complexity of became the main concern of the developers. With the advent of lightweight program, developers began to be popular lightweight framework for J2EE application development. Significantly reduce the complexity of J2EE application development, improve the productivity of software development. This paper proposed and to address the following questions: 1. Raised the main way to reduce the complexity of J2EE application development. Distributed system architectures tend not to choose, try to avoid using EJB, J2EE developers recommend the use of a lightweight infrastructure, and a simple, transparent storage mechanisms alternative to EJB technology. Depth analysis of lightweight container and EJB strengths and weaknesses and the adaptability of this article from transaction management, persistence, thread management, remote call and container management, comparative analysis of the advantages and disadvantages of lightweight containers and EJB and adaptation. Lightweight framework based the EJB J2EE architecture can better organize your application code to make better use of J2EE provides a variety of enterprise-class services. Key research lightweight alternative to EJB method this paper, the Spring framework as the main object of study, the lightweight program transaction management, persistence, thread management, remote call Spring substitute EJB specific research. Lightweight containers start fast, lightweight, and able to manage any granularity of objects. The lightweight framework by means of the inversion of control through xml file configuration dependencies between objects and object and lightweight container solve the problem of component assembly, so that developers can concentrate on the business logic. Lightweight program by aspect-oriented programming (AOP) for ordinary Java objects declarative enterprise-class services, non-invasive lightweight framework, flexibility and scalability. 4.J2EE architecture selection J2EE various advantages and disadvantages of the framework and scope of application. How to choose according to the specific needs of the application framework and application architecture integrated way. Finally, a brief introduction of the specific case of the Spring framework for J2EE application system: the Golf Data Services system. The system uses a the Spring IoC lightweight container through XML file configuration dependencies between business components. Based on AspectJ AOP solution to provide enterprise-class services. Business layer Spring framework for unified data access layer using Hibernate mapping program.

Table of contents

The Chinese summary the 5-6 ABSTRACT 6-11 1 Introduction 11-15 1.1 Background 11-12 1.2 J2EE application complexity generated the 12-14 1.2.1 container lock 12 1.2.2 complex structure <br / > 1.2.3 complex deployment descriptor file 12-13 1.2.4 class loading problems 13 1.2.5 test 13 1.2.6 complex programming model the the lower 13 1.2.7 software productivity 13-14 1.3 reduce the complexity of J2EE application way 14-15 2 J2EE architecture 15-27 2.1 J2EE Overview 15-17 2.2 an EJB provide services 17-20 2.2. a declarative transaction management 17 2.2.2 remote calls 17-18 the 2.2.3 cluster 18 2.2.4 thread management 18 2.2.5 instance pool the 18-19 2.2.6 resource pool 19 2.2.7 Security Management 19 <br / > 2.2.8 Business Object Management 19-20 the 2.3 J2EE Architecture Analysis 20-27 2.3.1 classic J2EE architecture 20-21 <br / > 2.3.2 Local EJB architecture 21-23 the 2.3.3 without EJB specially J2EE architecture 23-24 2.3.4 lightweight container architecture of 24-27 3 lightweight containers Inversion of Control 27-38 3.1 lightweight container Overview 27-28 3.1.1 container provides service 27-28 3.1.2 lightweight container. features analysis 28 3.2 lightweight container comparative analysis of EJB container 28-29 <br / > 3.2.1 the advantages of lightweight containers 28-29 3.2.2 the an EJB advantages analyze 29 3.2.3 the an EJB containers shortcomings Analysis 29 3.3 control reversal 29-38 3.3.1 IOC Strategic Analysis the 30-32 3.3.2 SpringIOC container achieve 32-38 4 aspect-oriented programming AOP 38-47 4.1 J2EE AOP 38-40 4.1.1 AOP concept introduced 38 -39 4.1.2 AOP technology in the common meaning of the term describes 39 4.1.3 EJB enterprise-class services to achieve 39-40 4.2 AOP measured slightly 40-41 4.2.1 Dynamic Agent 40 4.2.2 dynamic bytecode generation 40-41 4.2.3 Java code generation 41 4.2.4 using a custom class loader 41 4.2.5 language extensions 41 4.3 ASPECTJ AOP program 41-42 4.4 SPRING AOP achieve the 42-47 4.4.1 Spring AOP functionality 43 4.4.2 SpringAOP advantages 43 4.4.3 SpringAOP practice 43-47 5 transaction management 47-55 5.1 the traditional J2EE transaction management 47 5.2 J2EE container as a transaction coordinator are found; 47-48 5.3 container-managed transaction 48-49 5.4 lightweight transaction infrastructure 49 5.5 SPRING the things management framework the 49-53 5.5.1 Affairs statement 50 5.5.2 programmatic transaction processing 50-51 5.5.3 Declarative transaction processing 51-53 5.5.4 Transaction management strategies 53 of 5.6 SPRINGAOP and comparative analysis of EJB transaction management 53-55 6 persistent 55-65 6.1 J2EE data access solutions 56-57 6.1.1 use the O / R mapping analysis 57 6.1 .2 O / R mapping advantages 57 6.2 data access technology 57-60 6.2.1 Resource Management 57-59 6.2. 2 Hibernate 59-60 6.3 Data Access Objects (DAO) mode the 60-63 6.3.1 business objects and data access objects 60-61 < br /> 6.3.2 DAO and transparent persistence 61 6.3.3 Types of data access objects 61-62 6.3.4 Data Access Object (DAO) design the 62-63 6.4 SPRING framework for data access implementation 63-65 7 remote calls the 65-70 7.1 J2SE remote program RMI 65-66 7.2 J2EE remote mechanisms 66-67 7.2.1 communication protocol the 66-67 7.2.2 to access a remote EJB 67 7.2.3 exposed EJB services 67 7.3 lightweight remote program HESSIAN and BURLAP the 67-68 7.4 SPRING remote program supports 68-70 8 thread mechanism and buffer pool 70-75 8.1 an EJB threading model 70 8.2 an EJB instance pools 70-71 < br /> 8.3 an EJB thread mechanism and buffer pool alternative 71-73 8.3.1 multi-threaded shared object 71 8.3.2 application code to support concurrent 71-72 8.3.3 concurrency library 72 8.3.4 exclusive one object for each client 72 8.3.5 EJB instance pools 72-73 8.3.6 ThreadLocal buffer pool the 8.4 EJB security model 73 the 73-75 September lightweight framework for specific applications nbsp 75-82 9.1 GOLF Data Service System Introduction; 75 9.2 GOLF data service system specific Introduction the 75-82 10 summarizes Looking 82-83 Reference 83-84 of resume 84-85

Related dissertations

  1. Design and Implementation of Uniform Interface Platform System on AOP/IoC in the Telecommunications Industry
  2. The Research and Application of Component Mechanism Based on Castle Framework
    YangYang ·Wuhan University of Technology ·2008 ·Master's thesis
  3. Research and Design of Highway Engineering Information Management System Based on J2EE
  4. Application and Research of Spring Framework in Project Management Information System
    DuanPeiYong ·Southwest Jiaotong University ·2007 ·Master's thesis
  5. Research and Application of Piloting Management Information System Based on J2EE
    DaiPing ·Dalian Maritime University ·2007 ·Master's thesis
  6. Web application framework for the RIA
  7. Research and Implementation of Spring Framework Based on Web Application
    ZhangJinYan ·Yanshan University ·2006 ·Master's thesis
  8. AOP-based middleware framework of reflective objects
    ShenJun ·Hohai University ·2006 ·Master's thesis
  9. Design and Realization of Lightweight Framework Based on Domain-Model and IoC/AOP
  10. IoC Micro Container Design Supporting XML Configuration
    ZhaoJia ·Tianjin University ·2007 ·Master's thesis
  11. Secure Web architecture based on J2EE lightweight framework for research and application
  12. Spring-based lightweight Web Application Framework
    ZhangYingJie ·Liaoning Technical University ·2009 ·Master's thesis
  13. Automatic Translation from Name-based Pointcuts to Analysis-based Pointcuts for Robust Aspects
    WangLin ·Tianjin University ·2012 ·Master's thesis
  14. Research on Methods for Generating AOP Test Cases Based on Predicate Dynamic Slicing
    WangBo ·Zhengzhou University ·2012 ·Master's thesis
  15. Applied Research of Spring in the Police Integrated Information System
    ZhengPeiZuo ·Guangdong University of Technology ·2012 ·Master's thesis
  16. The Implementation and Optimization of DiSL Weaver
    ZhengYuDi ·Shanghai Jiaotong University ·2013 ·Master's thesis
  17. Aspect-oriented Programming-based Unit Test Effectiveness Detection System
  18. Software Fault Localization Research Based on Program Semantics
    HeGuoQin ·Hunan University ·2011 ·Master's thesis
  19. Hybrid Mode of Data Validation
  20. Design and Experimental Study of Electro-hydraulic Servo Dynamic Testing Machine Control System
    SunZuo ·Jilin University ·2012 ·Master's thesis