|
這是我上次提的問題,沒人解決只好自己解決了 http://www.hibernate.org.cn/viewtopic.php?t=18254&highlight=
使用Hibenate的Inteceptor,監聽對象變化發送郵件通知,也是Hibernate Inteceptor的一個應用 提供對"Task","UserStory","Iteration","Project","Integration"的郵件通知,測試通過版本xplanner-0.7b4
以下是對xplanner的更改: xplanner更改: com.technoetic.xplanner.mail.EmailMessageFactory: 增加默認構造函數 com.technoetic.xplanner.mail.EmailMessageImpl: 將發送郵件的contentType改為 text/html; gb2312 com.technoetic.xplanner.db.hibernate.XPlannerSessionFactory: 將openSession(XPlannerInteceptor)改成openSession(HibernateInterceptorImpl) 補丁: patch.HibernateInterceptorImpl: 監聽Entity的變化,對UserStory與Task等的變化進行郵件通知 需要設置屬性: xplanner.application.url=http://testmachine:7070/xplanner :郵件通知的鏈接地址 xplanner.mail.smtp.host=mainserver.listener.com.cn 郵件服務器主機地址
xplanner項目主頁: http://www.xplanner.org 源碼下載: http://fisheye.codehaus.org/viewrep/xplanner 補丁下載: http://www.hibernate.org.cn/download.php?id=1642
|