Changeset 29659
- Timestamp:
- 01/27/08 12:42:59 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/AbstractServerConfiguration.java
r29657 r29659 33 33 */ 34 34 public abstract class AbstractServerConfiguration implements ServerConfiguration { 35 36 private static final String JNDI_PREFIX = "nuxeo-client-jndi."; 35 37 36 38 private static final long serialVersionUID = 1970555604877434479L; … … 137 139 if (jndiProperties == null) { 138 140 jndiProperties = new Properties(); 141 int prefixLen = JNDI_PREFIX.length(); 139 142 for (Map.Entry<Object,Object> entry : properties.entrySet()) { 140 143 String key = entry.getKey().toString(); 141 if (key.startsWith( "jndi.")) {142 jndiProperties.put(key , entry.getValue());144 if (key.startsWith(JNDI_PREFIX)) { 145 jndiProperties.put(key.substring(prefixLen), entry.getValue()); 143 146 } 144 147 }
