- Timestamp:
- 01/12/09 08:49:32 (14 months ago)
- Author:
- jmoore
- Message:
-
OmeroClustering : Moving away from jgroups to straight multicast/jdbc approach
The ReplicatedHashMap implementation used from the org.jgroups.blocks
package had issues with our usage of the map. Since we are already
guaranteed a share storage (the db) for all blitz instances within
a single cluster, we are now using Ice's multicast support (from 3.3)
as well as simpleJdbcTemplate to manage the same information that was
previously in jgroups.
(cherry-pick from commit e50eed4204c2a1d360c2b261b5e6a7618573ba65)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3254
|
r3266
|
|
| 10 | 10 | import javax.naming.Context; |
| 11 | 11 | import javax.naming.InitialContext; |
| | 12 | import javax.naming.NameAlreadyBoundException; |
| 12 | 13 | import javax.naming.NamingException; |
| | 14 | |
| | 15 | import org.apache.commons.logging.Log; |
| | 16 | import org.apache.commons.logging.LogFactory; |
| 13 | 17 | |
| 14 | 18 | /** |
| … |
… |
|
| 20 | 24 | org.springframework.transaction.jta.JotmFactoryBean { |
| 21 | 25 | |
| | 26 | private final static Log log = LogFactory.getLog(JotmFactoryBean.class); |
| | 27 | |
| 22 | 28 | public JotmFactoryBean() throws NamingException { |
| 23 | 29 | super(); |
| 24 | | Context context = new InitialContext(); |
| 25 | | context.bind("java:comp/UserTransaction", getObject()); |
| | 30 | try { |
| | 31 | Context context = new InitialContext(); |
| | 32 | context.bind("java:comp/UserTransaction", getObject()); |
| | 33 | log.info("Bound UserTransaction in JNDI"); |
| | 34 | } catch (NameAlreadyBoundException nabe) { |
| | 35 | log.info("UserTransaction already bound in JNDI"); |
| | 36 | } |
| 26 | 37 | } |
| 27 | 38 | |
Download in other formats:
1.2.1-PRO © 2008-2009
agile42 all
rights reserved
(this page was served in: 0.58997 sec.)