Ticket #108 (closed defect: fixed)
JPA集群缓存同步
| Reported by: | huangzhong | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2012年6.0版本 |
| Component: | 商家后台 | Version: | 6.0 |
| Keywords: | JPA缓存 | Cc: | |
| Due Date: | 05/07/2012 |
Description
- 概述
商城的JPA集群缓存同步是使用了公司开发的适合自身的网络环境和应用特点的集群通讯软件,在子网内部使用组播通讯,子网之间使用组播代理进行转发(使用TCP),集群成员使用组播机制自动管理的体系结构。
- 配置
在WEB-INF/classes/META-INF/persistence_spring.xml文件中有如下一行
<property name="openjpa.RemoteCommitProvider?" value="cn.com.pconline.openjpa.event.MulticastRemoteCommitProvider?(address=225.0.0.51,port=11161)"/>
这个address,port就是商城专用的组播地址,只要是配置了这个组播地址的服务器都会收到需同步的信息,然后进行同步缓存
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/global/2008/images/jss/m_logo091125.jpg)
