Home
Designing Analytics Reports
Overwrite JNDI Name String in Java Code NOT ScriptedDataSourceEventAdapter
Migrateduser
<p>Hi everyone,</p>
<p> </p>
<p>I need a way to change the jndi name string in the dataSource beside the ScriptedDataSourceEventAdapter.</p>
<p>I cannot use because in Joint DataSets it is never called when attached to sql data sources.</p>
<p> </p>
<p>I´ve already tried this in an extension of ReportEventAdapter/beforeFactory:</p>
<p> </p>
<p>1.)</p>
<p>String jndiNameString = (String) element.getUserPropertyExpression("odaJndiName");</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>element.setUserProperty("odaJndiName", jndiNameString);</p>
<p> </p>
<p>2.)</p>
<p>IDataSource dataSource = report.getDataSource("Data Set");</p>
<p>dataSource.getPrivateDriverProperty("odaJndiName"); // which does not know of odaJndiName</p>
<p> </p>
<p>Please help, because we need to change the jndi String depending on input parameters</p>
Find more posts tagged with
Comments
There are no comments yet