Pentaho JNDI source name as parameter (Multi-Tennant)

前端 未结 1 514
盖世英雄少女心
盖世英雄少女心 2021-01-29 02:12

I have googled this for the last half an hour, and found hits for pentaho parameters etc but nothing that appears to ask or answer this question.

I have a set of reports

1条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 03:03

    OK, I have found a better solution using the little documented multi-tennant feature.

    1) Stop Pentaho

    2) Modify ( pentaho-solutions/system/pentahoObjects.spring.xml )

    
    
     
       
         
         
         
         
       
     
    

    3) Add Suffix to Data Sources ( biserver-ce/tomcat/webapps/pentaho/META-INF/context.xml )

    
    
    
    

    4) Delete /tomcat/conf/Catalina/localhost/pentaho.xml

    5) Restart Pentaho, create a user someone@xxx etc etc

    6) Create a report using the JNDI Name "MYDBSRC"

    7) Login as someone@xxx and you will get a different report / datasource than either logging in as user, or user@aaa

    Tadah !!

    0 讨论(0)
提交回复
热议问题