From 0826b7a717cf3023b16a15da0d8da3e35522222d Mon Sep 17 00:00:00 2001 From: Michael Dick Date: Fri, 6 Jul 2007 18:08:06 +0000 Subject: [PATCH] OPENJPA-279 git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553978 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java index a3b5afacb..ff6768f54 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java @@ -755,7 +755,8 @@ public class JDBCConfigurationImpl public Object getConnectionFactory2() { // override to configure data source if (dataSource2 == null) { - DataSource ds = (DataSource) connectionFactory2.get(); + // superclass will lookup from JNDI. + DataSource ds = (DataSource) super.getConnectionFactory2(); if (ds == null) { // the driver name is always required, so if not specified, // then no connection factory 2