皆様、こんにちは。
BIサーバ上のJNDI接続について少々調べる機会があったので、設定方法を残しておきます。
<設定手順>
1. BIサーバを停止する
2. pentaho/server/biserver-ce/tomcat/webapps/pentaho/WEB-INF/web.xml
以下のように追加
<resource-ref>
<description>testds</description>
<res-ref-name>jdbc/testds</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
3. pentaho/server/biserver-ce/tomcat/webapps/pentaho/META-INF/context.xml
以下のように追加
<Resource name="jdbc/testds"
auth="Container" type="javax.sql.DataSource"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
maxActive="20" maxIdle="5" maxWait="10000" username="postgres" password="password"
driverClassName="org.postgresql.Driver" url="jdbc:postgresql://localhost:5432/postgres" />
4. pentaho/server/biserver-ce/tomcat/conf/Catalina/localhost/context.xmlを削除
5. BIサーバを起動する
※設定やディレクトリ等は適宜読み替えてください。
以上です。
--
Michi
BIサーバ上のJNDI接続について少々調べる機会があったので、設定方法を残しておきます。
<設定手順>
1. BIサーバを停止する
2. pentaho/server/biserver-ce/tomcat/webapps/pentaho/WEB-INF/web.xml
以下のように追加
<resource-ref>
<description>testds</description>
<res-ref-name>jdbc/testds</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
3. pentaho/server/biserver-ce/tomcat/webapps/pentaho/META-INF/context.xml
以下のように追加
<Resource name="jdbc/testds"
auth="Container" type="javax.sql.DataSource"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
maxActive="20" maxIdle="5" maxWait="10000" username="postgres" password="password"
driverClassName="org.postgresql.Driver" url="jdbc:postgresql://localhost:5432/postgres" />
4. pentaho/server/biserver-ce/tomcat/conf/Catalina/localhost/context.xmlを削除
5. BIサーバを起動する
※設定やディレクトリ等は適宜読み替えてください。
以上です。
--
Michi