Changeset 29659

Show
Ignore:
Timestamp:
01/27/08 12:42:59 (10 months ago)
Author:
bstefanescu
Message:

using nuxeo-client-jndi. prefix for jndi properties

Files:

Legend:

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

    r29657 r29659  
    3333 */ 
    3434public abstract class AbstractServerConfiguration implements ServerConfiguration { 
     35 
     36    private static final String  JNDI_PREFIX = "nuxeo-client-jndi."; 
    3537 
    3638    private static final long serialVersionUID = 1970555604877434479L; 
     
    137139        if (jndiProperties == null) { 
    138140            jndiProperties = new Properties(); 
     141            int prefixLen = JNDI_PREFIX.length(); 
    139142            for (Map.Entry<Object,Object> entry :  properties.entrySet()) { 
    140143                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()); 
    143146                } 
    144147            }