Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
odaDataSource
birtprofi
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
mwilliams
To set the JNDI URL, try setting the "odaJndiName" property.