作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2013, Vol. 39 ›› Issue (1): 260-263. doi: 10.3969/j.issn.1000-3428.2013.01.057

• 工程应用技术与实现 • 上一篇    下一篇

基于移动代理的Struts 2框架

杨 力 1,2,陈利学 1,赵永清 1,廖浩德 1   

  1. (1. 西南石油大学计算机科学学院,成都 610500;2. 四川大学计算机学院,成都 610065)
  • 收稿日期:2011-12-06 修回日期:2012-02-14 出版日期:2013-01-15 发布日期:2013-01-13
  • 作者简介:杨 力(1975-),男,讲师、博士研究生,主研方向:人工智能,分布式计算;陈利学,教授;赵永清,副研究员;廖浩德,副教授
  • 基金资助:
    国家自然科学基金资助项目(61175122, 61179071)

Struts 2 Framework Based on Mobile Agent

YANG Li 1,2, CHEN Li-xue 1, ZHAO Yong-qing 1, LIAO Hao-de 1   

  1. (1. School of Computer Science, Southwest Petroleum University, Chengdu 610500, China;2. College of Computer Science, Sichuan University, Chengdu 610065, China)
  • Received:2011-12-06 Revised:2012-02-14 Online:2013-01-15 Published:2013-01-13

摘要: 针对移动Agent与Web互操作困难的问题,将两者的优势相结合,提出基于移动代理的Aglet-Struts 2整合开发框架。引入Aglet action服务代理把移动代理和Struts 2的控制action、视图JSP和模型javaBean进行整合,通过持久层 Hiberanate实现数据库的透明访问。利用XML技术完成数据交换,采用分层结构,使各层相互独立、耦合度低,以提高系统的可维护性、扩展性和灵活性。将该框架应用到气田生产数据远程监控系统中,证明该框架具有可行性,适用于复杂分布式系统的构建。

关键词: 移动代理, 分层结构, 控制视图, 分布式计算, 远程监控

Abstract: To solve the interoperability difficulty between mobile Agent and Struts 2, combining with the advantages of both, a new Aglet-Struts 2 integrated development framework based on mobile Agent is proposed. This framework integrates mobile Agent with Struts 2 control action, JSP view and javaBean model in together by the agletaction service proxy, and achieves transparent access to database by persistent layer Hiberanate. Using XML technology for data exchange and hierarchical structure for low coupling, maintainability, extensibility and flexibility of the framework are greatly improved. Through the application of the framework to the remote monitoring system of gas production data, the feasibility of the framework is further demonstrated. It provides a new solution and means for complex distributed applications.

Key words: mobile Agent, hierarchical structure, control view, distributed computing, remote monitoring

中图分类号: