This parse pid really needs to return three variables (possibly):

    private String[] parsePid(String pid) { 
        int n = pid.indexOf('-'); 
        if (n > 0) { 
            String instance = pid.substring(n + 1); 
            String factoryPid = pid.substring(0, n); 
            return new String[]{null, factoryPid, instance}; // pid is null
as it hasn't been generated yet
        } else { 
            return new String[]{pid, null, null}; 
        } 
    }

Of course if this change was made additional changes would need to be made
to the file to match this.

thanks,
Gareth





--
View this message in context: 
http://karaf.922171.n3.nabble.com/Problems-With-Factory-Configurations-In-Karaf-3-0-1-tp4033921p4033956.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to