摘要
在构建大型货运代理系统时,针对所遇到的分公司间存在需求上的差异、权限和并发访问等关键问题,提出一种有效的,可行的解决方案.引入基于Java的规则引擎,解决各分公司需求差异的技术实现问题,把大量的if-else语句从应用程序中分离出来,简化了代码,并增强可读性和可维护性.通过在服务器和客户端两方面的构建,系统可以很好地分配功能访问权限,既保证分公司间角色的多样性,又保证数据的安全性.选用Read Committed隔离级别,并采用对象持久化技术,可解决不可重复读和第二类丢失更新的并发问题.
This paper analyses the key questions on constructing large-sized freight agent systems, which are the different demands among branch companies, concurrency-control problems and authorization-control problems, and then an efficient, feasible resolution is brought forward. Using rule engine based on java, the technology is realized for demand difference from branch companies, and many if-else statements are separated from application program, so codes are simplified, and readability and maintainability is enhanced. The system can assign the access privileges by the construction on the server-side and client-side which can ensure the diversity of roles among the branches and data safety. Choosing isolation level of read committed and adopting the object persistent technology can settle the concurrent problems between nonrepeatable read and second losing the refreshment
出处
《华侨大学学报(自然科学版)》
CAS
北大核心
2009年第6期642-645,共4页
Journal of Huaqiao University(Natural Science)
基金
福建省自然科学基金资助项目(A0810013)
关键词
货代系统
规则引擎
对象持久化技术
参数配置
freight agent systems
rule engine
object persistent technology
parameter configuration