Changeset 29695

Show
Ignore:
Timestamp:
01/28/08 09:55:17 (10 months ago)
Author:
bstefanescu
Message:

working on autoconfig

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/v1/ConfigurationFactory1.java

    r29693 r29695  
    100100            String h = shost.getHost(); 
    101101            int p = shost.getPort(); 
     102            Properties props = shost.getProperties(); 
    102103            // we need to update jndi props of local server so that the lcient use the right config 
    103104            if (h == null) { 
    104105                shost.setAddress(host, p); // TODO: 1099? 
    105                 updateLocalHostJndiProps(shost); 
    106106            } else { 
    107107                String newHost = ConfigurationHelper.getNormalizedHost(h, host); 
    108108                if (newHost != null) { 
    109109                    shost.setAddress(newHost, shost.getPort()); 
    110                     updateLocalHostJndiProps(shost); 
    111110                } 
     111            } 
     112            // if no jndi props specified - use the global ones (the ones in nuxeo.properties) 
     113            if (props == null || props.isEmpty()) { 
     114                updateLocalHostJndiProps(shost); 
    112115            } 
    113116        }