diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java index 6afc604e3..dea3800cd 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java @@ -105,8 +105,12 @@ public class JDBCStoreManager } public void setContext(StoreContext ctx) { + setContext(ctx, (JDBCConfiguration) ctx.getConfiguration()); + } + + public void setContext(StoreContext ctx, JDBCConfiguration conf) { _ctx = ctx; - _conf = (JDBCConfiguration) ctx.getConfiguration(); + _conf = conf; _dict = _conf.getDBDictionaryInstance(); _sql = _conf.getSQLFactoryInstance();