OPENJPA-279

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2007-07-06 18:08:06 +00:00
parent 774e7b5b8c
commit 0826b7a717
1 changed files with 2 additions and 1 deletions

View File

@ -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