Changeset 29695
- Timestamp:
- 01/28/08 09:55:17 (10 months ago)
- 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 100 100 String h = shost.getHost(); 101 101 int p = shost.getPort(); 102 Properties props = shost.getProperties(); 102 103 // we need to update jndi props of local server so that the lcient use the right config 103 104 if (h == null) { 104 105 shost.setAddress(host, p); // TODO: 1099? 105 updateLocalHostJndiProps(shost);106 106 } else { 107 107 String newHost = ConfigurationHelper.getNormalizedHost(h, host); 108 108 if (newHost != null) { 109 109 shost.setAddress(newHost, shost.getPort()); 110 updateLocalHostJndiProps(shost);111 110 } 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); 112 115 } 113 116 }
