resin3服务器resin.conf文件的配置
安装resin其实很简单,在window上 下载解压包,直接解压就行,
使用的话 就配置下conf文件夹下面的resin.conf这个文件,
如果在项目中使用jndi的方式使用数据库的话就可以按照下面的这方式配置,
1.配置oracle数据库
<database>
<jndi-name>jdbc/test</jndi-name>
<driver type="oracle.jdbc.driver.OracleDriver">
<url>jdbc:oracle:thin:@127.0.0.1:1521:test</url>
<user>123456</user>
<password>123456</password>
<init-param useUnicode="TRUE"/>
<init-param characterEncoding="ISO8859_1"/>
</driver>
<prepared-statement-cache-size>2048</prepared-statement-cache-size>
<max-connections>50</max-connections>
<max-idle-time>30s</max-idle-time>
</database>
2.配置项目
<host id="xxxx.xx.com" root-directory=".">
<web-app id='/' document-directory="C:/Users/Administrator/Desktop/web/WebRoot">
<!-- 配置日志的输出 -->
<stdout-log path='C:/Users/Administrator/Desktop/web/log/stdout.log' rollover-period='1W'/>
<stderr-log path='C:/Users/Administrator/Desktop/web/log/stderr.log' rollover-period='1W'/>
<class-loader>
<compiling-loader path='C:/Users/Administrator/Desktop/web/WebRoot/WEB-INF/classes'/>
<library-loader path='C:/Users/Administrator/Desktop/web/WebRoot/WEB-INF/lib'/>
</class-loader>
<servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>
<session-config>
<session-max>4096</session-max>
<session-timeout>60</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
<always-save-session>true</always-save-session>
</session-config>
</web-app>
</host>
Andy_能力越到责任越大