日期:2014-05-18  浏览次数:20830 次

关于resin的配置
本人用JSP开发完了一个项目,数据库用的是SQL   SERVER2000,本来用的是tomcat服务器,在tomcat中配置数据库连接池,后来由于客户要求要用resin服务器,小弟已经下载了resin,没有用过resin,不知道怎么配置(包括端口,域名,数据库连接等),是不是在/conf/resin.conf中进行配置呢,如果是的话,那具体怎么配置呢,哪位好心人能不能把这段配置代码告诉下呢

------解决方案--------------------
给你个例子
<!--
- Resin 3.0 configuration file.
-->
<resin xmlns= "http://caucho.com/ns/resin "
xmlns:resin= "http://caucho.com/ns/resin/core ">
<!--
- Logging configuration for the JDK logging API.
-->
<log name= " " level= "info " path= "stdout: " timestamp= "[%H:%M:%S.%s] "/>
<log name= "com.caucho.java " level= "config " path= "stdout: "
timestamp= "[%H:%M:%S.%s] "/>
<log name= "com.caucho.loader " level= "config " path= "stdout: "
timestamp= "[%H:%M:%S.%s] "/>

<!--
- For production sites, change dependency-check-interval to something
- like 600s, so it only checks for updates every 10 minutes.
-->
<dependency-check-interval> 2s </dependency-check-interval>

<!--
- You can change the compiler to "javac " or jikes.
- The default is "internal " only because it 's the most
- likely to be available.
-->
<javac compiler= "internal " args= " "/>

<!-- Security providers.
- <security-provider>
- com.sun.net.ssl.internal.ssl.Provider
- </security-provider>
-->

<!--
- If starting bin/resin as root on Unix, specify the user name
- and group name for the web server user.
-
- <user-name> resin </user-name>
- <group-name> resin </group-name>
-->

<!--
- Configures threads shared among all HTTP and SRUN ports.
-->
<thread-pool>
<!-- Maximum number of threads. -->
<thread-max> 128 </thread-max>

<!-- Minimum number of spare connection threads. -->
<spare-thread-min> 25 </spare-thread-min>
</thread-pool>

<!--
- Configures the minimum free memory allowed before Resin
- will force a restart.
-->
<min-free-memory> 1M </min-free-memory>

<server>
<!-- adds all .jar files under the resin/lib directory -->
<class-loader>
<tree-loader path= "${resin.home}/lib "/>
<tree-loader path= "${server.root}/lib "/>
</class-loader>

<!-- Configures the keepalive -->
<keepalive-max> 500 </keepalive-max>
<keepalive-timeout> 120s </keepalive-timeout>

<resin:if test= "${resin.isProfessional()} ">
<select-manager enable= "true "/>
</resin:if>

<!-- The http port -->
<http server-id= " " host= "* " port= "8010 "/>

<!--
- SSL port configuration:
-
- <http port= "8443 ">
- <openssl>
- <certificate-file> keys/gryffindor.crt </certificate-file>
- <certificat