Show
Ignore:
Timestamp:
01/12/09 08:49:32 (20 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:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/components/server/src/ome/tools/spring/JotmFactoryBean.java

    r3254 r3266  
    1010import javax.naming.Context; 
    1111import javax.naming.InitialContext; 
     12import javax.naming.NameAlreadyBoundException; 
    1213import javax.naming.NamingException; 
     14 
     15import org.apache.commons.logging.Log; 
     16import org.apache.commons.logging.LogFactory; 
    1317 
    1418/** 
     
    2024        org.springframework.transaction.jta.JotmFactoryBean { 
    2125 
     26    private final static Log log = LogFactory.getLog(JotmFactoryBean.class); 
     27     
    2228    public JotmFactoryBean() throws NamingException { 
    2329        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        } 
    2637    } 
    2738 

1.2.1-PRO © 2008-2009 agile42 all rights reserved (this page was served in: 0.47295 sec.)