143144145146147148149150151152153
{ if (connDS != null) { if (!(connDS instanceof DataSource) && !(connDS instanceof XADataSource)) { throw new UnsupportedConnectionFactoryException(connDS); } dataSource = new DataSource[1]; dataSource[0] = connDS; } else if (connJNDI != null)
685686687688689690691692693694
throw new ConnectionFactoryNotFoundException(name, e); } if (!(obj instanceof DataSource) && !(obj instanceof XADataSource)) { throw new UnsupportedConnectionFactoryException(obj); } return obj; }