diff --git a/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java b/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java index 33b69ab30..1f655ab78 100644 --- a/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java +++ b/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java @@ -840,7 +840,14 @@ public class ConfigurationImpl * properties value with the name of a resource. */ public void setProperties(String resourceName) throws IOException { - ProductDerivations.load(resourceName, null, + String anchor = null; + if (resourceName.indexOf("#") != -1) + { + anchor = resourceName.substring(resourceName.lastIndexOf("#") + 1); + resourceName = resourceName.substring(0, + resourceName.length() - anchor.length() - 1); + } + ProductDerivations.load(resourceName, anchor, getClass().getClassLoader()).setInto(this); _auto = resourceName; }