基于Java EE的生活服务信息平台研究与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着信息技术的不断发展,互联网应用在我们的生活中也渐渐地普及起来,信息化生活已经拉开了帷幕。信息化生活能够使人们的生活更加丰富多彩、快捷便利,生活服务信息平台是为人们提供查询、发布和交流生活服务信息的公共开放平台,你可以通过手机或电脑连接互联网,在信息平台上查找所需要的服务信息,平台会匹配给你最适合的服务内容。不同于搜索引擎的是,生活服务信息平台可以专业化地提供生活服务方面的信息,对服务品类有细致地分类,用户使用起来更加方便。而且它还具有RIA风格,能够很好地提升用户体验。
     互联网应用技术层出不穷,但对于生活服务领域来说,要考虑其生动活泼、富用户体验、高并发量以及稳定性等因素。本文采用JavaEE规范中的JSF和EJB3.0技术来实现生活服务信息平台,这种方案可以提供轻量级企业开发技术平台,而且分层架构的松耦合性、可扩展性等都有很大改善,还可以简便快捷地开发具有RIA风格的用户界面。由此可见,JSF和EJB3.0的组合对于快速开发生活服务信息平台有不可替代的优势。
     本文首先回顾了互联网应用技术发展现状,在比较现有技术方案的基础上,引入了Java EE规范平台。接着介绍了Java EE规范体系,接着分别论述了JSF、EJB3.0的主要原理、特性和组成部分,并介绍了Java EE中持久化规范JPA,以及容器的相关知识。
     然后,本文对系统的需求进行分析,并建立域模型,对业务逻辑进行模块划分,并依照数据模型完成了数据库设计。在系统总体架构设计时,本文阐述了基于Java EE规范的多层架构设计思想,并详细论述了JSF实现Web层、EJB3.0实现服务层、JPA实现持久层的分层设计思路,还讲述了JSF与EJB3.0、Ajax的集成方案,在此过程中,论证了Java EE规范在Java Web开发上的优势。
     最后,本文对作者参与设计实现的系统模块进行了详细介绍,按照面向对象设计的方法介绍了模块UML图,以及实现过程中具体问题的解决办法。在论文的结尾,作者对系统测试及运行情况进行了总结,并展望了下一步工作内容。
With the development of information technology, Internet application has becoming more and more widespread in our lives, informationization life has been launched. Informationization life can make our lives more colorful and convenient, life service information platform is a public open platform for people, to provide searching, publishing and exchanging information on living services. You can access internet with your mobile phone or PC, and search the service information on the platform, then it will match your requirenment with the most suited one for you. Unlike search engines that life service information platform could give people highly specialized life service information, it has detailed category for services, so it saves users'time. What's more, it also has a RIA-style, enhances the user experience very well.
     There has been too much technology about internet application, but for the field of life service, we have to consider the following factors, such as the vividness, rich user experience, high-concurrency, as well as the stability. This paper uses JSF and EJB3.0 in Java EE to develop the life and service platform, which can provide lightweight enterprise development technology platform, and imporves the loose coupling in architecture very well, as well as scalability. JSF is very useful to develop the RIA-style user interfaces easily and rapidly. So the combination of JSF and EJB3.0 for the rapid development of life service information platform has irreplaceable advantages.
     This paper first reviews the status of Internet application technology development, compares the existing technologies, then introducs the Java EE standard platform, also discusses the main principle, characteristics and components of JSF and EJB3.0, introduces the JPA included in Java EE and related knowledge about EJB container.
     Then the paper makes the system requirement analysis and creates the domain model, devides the business logic into different modules, also designs the database according to data models. In the overall system architecture design, the paper illustrates the multi-layer architecture design pattern based on Java EE standard, analyzes how JSF implements Web layer, how to implement service layer by EJB3.0, how to use JPA implement the persistence layer, also introduces the method of intergrating JSF and EJB3.0 together. In this process, the paper demonstrates the Java EE's dominance on Java Web developing.
     At last, the paper introduces the detailed design and implement course in the modules which author involved in, describes the UML diagrams by the object-oriented design methods, and the solutions for specific issues. In the end of the paper, the result of system testing and running is introduced, and also prospect the research content for the next phase.
引文
[1]JCP Expert Group.JSR-244(Java EE.0)[S/OL].http://jcp.org/en/jsr/detail? id=244.
    [2]http://java.sun.eom/Java EE/5/does/api
    [3]黄开枝,许勇,王黎.Java EE 5完全学习手册.清华大学出版社.2009.4
    [4]Kevin Mukhar, Chris Zelenak, James L.Weaver, Jim Crume著,窦巍,顾玲等译.Java EE 5开发指南.机械工业出版社.2006.9
    [5]徐明华,尼春雨.JSF编程实战导航[J].北京:清华大学出版社.2008.
    [6]JCP Expert Group.JSR-252(JSF1.2)[S/OL].http://jcp.org/en/en/jsr/detail?i d=252.
    [7]麻地河,赵恒.JSF Web应用开发实战.机械工业出版社.2008.9
    [8]JCP Expert Group.JSR-220(EJB3.0)[S/OL].http://jcp.org/en/jsr/detail?id= 220.
    [9]朱俊成,李有军,王俊伟.EJB3.0从入门到精通.电子工业出版社.2009.4
    [10]Richard Morson-Haefel著,林琪,杨春生译.Enterprise Java Beans.中国电力出版社.2005.5
    [11]冯曼菲.EJB JPA数据库持久层开发实践讲解.电子工业出版社.2008
    [12]葛京.Hibernate 3和Java Persistence API程序开发从入门到精通.清华大学出版社.2007
    [13]杨少波,卢苇.J2EE项目实训--UML及设计模式.清华大学出版社.2008.6
    [14]沈应逵,曾凌.Java Web数据库系统应用开发与实例.中国电力出版社.2006
    [15]张峰,李慧丽.Java Web 2.0架构开发与项目实战.清华大学出版社.2009
    [16]范会联.基于JSF与EJB3的Web信息系统设计[J].计算机系统应用,2007
    [17]徐明华,邱加永,郑经煜.精通JSF—基于EJB、Hibernate、Spring整合开发与项目实践.人民邮电出版社.2009.2
    [18]李芝兴,杨瑞龙.Java EE Web编程:Eclipse平台.机械工业出版社.2008
    [19]http://openjpa.apache.org/documentation.html
    [20]http://www.jboss.org/richfaces/docs.html
    [21]雨虹.JSF/RichFaces, ExtJS实战剖析.电子工业出版社.2009
    [22]http://docs.codehaus.org/display/MAVENUSER/Home
    [23]https://glassfish.devjava.net/faq/v2/GlassFishoverview.pdf,2007
    [24]Otis Gospodnetic, Erik Hatcher著,谭鸿译.Lucene IN ACTION中文版.电子工业出版社.2007
    [25]马玉春,宋涛瀚.Web中中文文本分词技术研究.计算机应用,2004,24(4):134—136
    [26]李颖,李志蜀,邓欢.基于Lucene的中文分词方法设计与实现.四川大学学报,2008
    [27]Google Map API文档.]http://www.google.com

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700