Home
Analytics
JDBC MySql Connection properties?
Mylsamy
I am using servlet , to build and open a report design in birt report..
My database in MySql, how to integrate my Database with my servlet through jdbc connection properties..
Here is Code for Classic model database in ODA datasource,
OdaDataSourceHandle dsHandle = designFactory.newOdaDataSource(
"Data Source", "org.eclipse.birt.report.data.oda.jdbc" );
dsHandle.setProperty( "odaDriverClass",
"org.eclipse.birt.report.data.oda.sampledb.Driver" );
dsHandle.setProperty( "odaURL", "jdbc:classicmodels:sampledb" );
dsHandle.setProperty( "odaUser", "ClassicModels" );
dsHandle.setProperty( "odaPassword", "" );
designHandle.getDataSources( ).add( dsHandle );
i want to connect like this as my MySql ODA jdbc datasource instead of this datasource.
And my datasource name of MySql is dbcrs
and user name : root
Could i connect this?
Help is needed...
Find more posts tagged with
Comments
There are no comments yet