节点文献

轻量级J2EE架构的研究与应用

【作者】 徐鹏

【导师】 陆鑫;

【作者基本信息】 电子科技大学 , 计算机软件与理论, 2007, 硕士

【摘要】 随着J2EE技术的发展,J2EE在企业级软件开发中占的地位也日益重要,但是作为传统的基于EJB的J2EE架构开始越来越不能满足一些企业对应用开发新的要求。传统的基于EJB的J2EE架构其优势在于高级J2EE特性和分布式应用,但是很多项目对这些高级特性和分布式特性要求并没有要求,而且,这些高级特性和分布式应用较为复杂的开发和配置大大降低了企业的开发速度,也增加了企业的开发成本。本文针对这一问题,提出了一种基于开源框架的轻量级J2EE开发架构的解决方案。本论文所做的工作如下:首先,研究了J2EE发展的现状,归纳传统的基于EJB的J2EE架构所带来的开发问题,分析造成这些问题的原因。针对造成这些问题的原因,研究了现在流行的轻量级J2EE框架,考察了这样的轻量级框架可以在什么层面上对原来的“重量级”架构进行替代,比较了轻量级架构和重量级架构各自的优势所在。其次,结合本文的目标和现在流行的轻量级J2EE框架的作用、优缺点进行技术选型,选择Sturts作为Web层框架,Spring作为业务逻辑层框架,Hibernate作为数据持久层框架。深入探讨了几个框架所采用的技术、特性以及开发方法,同时也对准备在本架构中采用的其他重要组件进行了研究分析。再次,在前文的研究基础上,对本文要实现的轻量级J2EE开发架构进行了模型建立和模型分析,模型改进。根据建立的模型,对Struts,Spring,Hibernate和其他组件进行了整合,并在整合的基础上,设计和实现了异常处理机制,数据封装,架构安全,为通用业务提供的模板接口和实现类等。最后,通过一个开发实例,测试该开发架构的可用性,实用性,易用性及其他特性。本文提出的轻量级J2EE开发架构提供了Web开发需要的服务,摒弃了不需要的J2EE高级特性和分布式应用,可以让企业的开发变得简单和快速,特别适合企业的小规模Web业务开发。

【Abstract】 With the development of the J2EE technology, J2EE is becoming more and more important in enterprise’s development, however the traditional J2EE framework which is based on the EJB architecture is becoming more and more can not satisfy the new requests from enterprises. Many projects don’t need advanced J2EE characteristics and distributed application which are the advantage of the traditional J2EE framework, so the complex development, configuration, deploy of advanced J2EE characteristics and distributed application depress the development speed greatly. It increases the enterprise’s cost also. This paper focus on the problems, gives a light-weight J2EE develop framework solution project based on Open-Source.My work is shown as follows in the paper:At first, this paper has researched the status quo of J2EE development, concluded the develop problems brings by the traditional J2EE framework and analyzed the causations of the problems. Focus on these problems, this paper have researched the light-weight J2EE framework which is popular now, checked what level can the light-weight framework instead of the heavy-weight framework in, found advantage and disadvantage of the two.Secondly, this paper has classified the popular light-weight J2EE frameworks into 3 kinds, analyze few most important frameworks into 3 kinds. Considering the aim of this paper, the functions and advantages of these frameworks, we choose Struts as framework of web level, Spring as framework as business logic level, Hibernate as framework of persistence level. We discus these three framework deeply in this paper and do it to some other important subassemblies also.Thirdly, based on the research before, this paper has constructed a model for the light-weight J2EE develop framework and analyze it, improve it. According to the model, we assembled Struts, Spring, Hibernate and other subassemblies. In additional, we designed and realized exception process mechanism, data encapsulation, framework security, template interface and class for the basic business and so on. At last, we gave a develop instance to test this develop framework’s usability, practicability and other characteristics.The light-weight J2EE develop framework gives almost services that web development need, discards some J2EE advanced characteristics and distributed application. It can make enterprise’s development to be simple and fast, so it’s adapt to the small-scale web business development.

  • 【分类号】TP311.52
  • 【被引频次】58
  • 【下载频次】476
节点文献中: 

本文链接的文献网络图示:

本文的引文网络