摘要
Spring Integration提供一种简单、高效的机制实现面向消息的应用集成,并采用声明式配置定义消息通道与消息处理部件的联系,SpringSource Tool Suite提供可视化工具箱实现消息处理流程的编排.结合某目录下文件安全检查的应用实例,给出Spring Integration的具体编程处理方法,通过消息文件存储某目录下所有文件的状态信息.待检测时将目录下文件的信息与消息文件记录的信息进行比较,从而发现文件的变化并作相应处理,通过自动发送邮件通知管理者.
Spring Integration provides a simple, efficient mechanism to realize message oriented application integration. It adopts declarative configuration definition connection between message channel and message processing unit. Spring Tool Suite provides a visual toolbox to realize message flow process layout. Combined with a directory file security inspection application,this paper gives the specific programming processing method. Through message files all documents state information is stored in a directory. When detecting,the file information in the directory is compared with the recorded information from the message file,in order that the file changes should be found, and a notice mail be automatically sent to the manager.
出处
《吉首大学学报(自然科学版)》
CAS
2013年第2期26-30,共5页
Journal of Jishou University(Natural Sciences Edition)