Project: Birt
Bug 236565 Support java.sql.Connection as ODA JDBC java connection provider.
Reported: 2008-06-11 00:24:32 | Status: resolved fixed

At current stage to dynamically switch the data source of JDBC driver, BIRT provides following means: 1.Property binding 2.JNDI 3.Script data set 4.DataSource.beforeOpen() event. However, it turns out that in real world user may want to pass in a java.sql.connection directly, which is expected to be used by BIRT ODA JDBC during runtime.This requirement is valid for lots of POJO may be able to provide jdbc connections. Suggest to add appContext support to ODA JDBC. Specifically, OdaJdbcDriver.setAppContext() should be activated. So that user can pass the java.sql.Connection during runtime.

Files changed in fix:
data/org.eclipse.birt.report.data.oda.jdbc.tests/test/org/eclipse/birt/report/data/oda/jdbc/OdaJdbcDriverTest.java data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/Connection.java data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/IConnectionFactory.java