摘要: 针对移动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
中图分类号:
杨力, 陈利学, 赵永清, 廖浩德. 基于移动代理的Struts 2框架[J]. 计算机工程, 2013, 39(1): 260-263.
YANG Li, CHEN Li-Hua, DIAO Yong-Qing, LIAO Gao-De. Struts 2 Framework Based on Mobile Agent[J]. Computer Engineering, 2013, 39(1): 260-263.