Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
odaDataSource
Migrateduser
Hi,<br />
<br />
what is the exact string if I want to connect a datasource via script. At the moment I could connect with this code:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>odaDataSource.setExtensionID( "org.eclipse.birt.report.data.oda.jdbc" );
odaDataSource.addPublicProperty( "odaURL", dsrc.getProperty("odaURL").toString() ); //
odaDataSource.addPublicProperty( "odaDriverClass", dsrc.getProperty("odaDriverClass").toString()); //
odaDataSource.addPublicProperty( "odaUser", dsrc.getProperty("odaUser").toString() ); //
odaDataSource.addPublicProperty( "odaPassword", "test" ); //Passwort</pre>
<br />
But I would like to connect only with JNDI Url, because I have stored my connection properties in context.xml file.<br />
<br />
Best regards
Find more posts tagged with
Comments
There are no comments yet