Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Can the JNDI parameter on the SQLLookupRule action be a parameter ?

$
0
0
Hi All,

I have a single pentaho server that will serve reports for various applications. Applications are exactly the same, just their user data are different. Each application has its own JNDI.

I am wondering it the JNDI parameter of the SQLLookupRule can be parametrized ? I tried several syntaxes including hte following

Code:

  <inputs>
    <jndi type="string">
      <default-value></default-value>
      <sources>
        <request>jndi</request>
      </sources>
    </jndi>
  </inputs>

  <actions>
    <action-definition>
      <component-name>SQLLookupRule</component-name>
      <action-type>GetData</action-type>
      <action-inputs/>
      <action-outputs>
        <query-result type="result-set" mapping="output_list"/>
      </action-outputs>
      <component-definition>
        <jndi><![CDATA[{jndi}]]></jndi>
        <live><![CDATA[true]]>true</live>
        <query><![CDATA[SELECT field1, field2 FROM mytable ORDER BY 1]]></query>
      </component-definition>
    </action-definition>

but it ends up giving me

Code:

org.pentaho.platform.api.data.DatasourceServiceException: javax.naming.NameNotFoundException: Name {dnj} is not bound
in this Context

Is this possible ? If so what would be the correct syntax to declare jndi as a parameter ?

Thank you,

--
YGuenane

Viewing all articles
Browse latest Browse all 16689

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>