Hi,
I am using BIRT design engine API. I am using below code to build datasource:
void buildDataSource( ) throws SemanticException {
OdaDataSourceHandle dsHandle = designFactory.newOdaDataSource("Data Source", "org.eclipse.birt.report.data.oda.jdbc" );
dsHandle.setProperty( "odaDriverClass","oracle.jdbc.driver.OracleDriver" );
dsHandle.setProperty( "odaURL", "jdbc:oracle:thin:
@localhost:1521:TEST" );
dsHandle.setProperty( "odaUser", "Test" );
dsHandle.setProperty( "odaPassword", "start123" );
designHandle.getDataSources( ).add( dsHandle );
}
Is there any way in i can pass connection which i am setting in my weblogic server, instead of hardcoding the datasource in code.
Thanks in advance,
Ashish