报表知识库
我要提问

Resin数据源配置

resin数据源配置,打开resin/conf/下的resin.conf文件 找到 <database>处,例如:
<database>
           <jndi-name>mysql</jndi-name>
           <driver type=”com.mysql.jdbc.Driver”>
                  <url>jdbc:mysql://localhost:3306/rain</url>
                  <user>root</user>
                  <password>rain</password>
           </driver>
           <prepared-statement-cache-size>8</prepared-statement-cache-size>
           <max-connections>20</max-connections>
           <max-idle-time>30s</max-idle-time>

</database>

将应用部署到 resin/webapps下,reportConfig中jndi设置如下:

<config>
      <name>JNDIPrefix</name>
      <value>java:comp/env</value>