当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 1、 NT-FAMILY: 宋体; mso-ascii-font
 

 

 ·域名查询系统--适合新手    »显示摘要«
    摘要:<%on error resume nextserver.scripttimeout=9999999function gethttppage(path) t = getbody(path) gethttppage=bytestobstr(t,"gb2312")end function function getbody(url) on error resume next ......
 ·php的安装    »显示摘要«
    摘要:1. gzip -d httpd-2_0_nn.tar.gz 2. tar xvf httpd-2_0_nn.tar 3. gunzip php-nn.tar.gz 4. tar -xvf php-nn.tar 5. cd httpd-2_0_nn 6. ./configure --enable-so 7. make 8. make install 现在您已经将 apache......


Tomcat5配置Mysql JDBC数据库连接池
上一页   ...            max. wait for connection:    5000

            validation query:   【程序编程相关:[引用]该C#程序可将文本文件藏于位图中

【推荐阅读:〔管理服务器〕的登录账号和OEMREP数

【扩展信息:Eclipse Web Tools Pr

要求输入的jndi name等信息,其中除了jdbc driverclass之外,其他的可以根据你的需要填写.比如data source url的内容可能是:jdbc:mysql:// ip或是名称/databasename,其中databasename是你的数据库名称,ip是你的数据库的所在的服务器的ip或是名称.最后点击save->commit change.这样你的数据源的基本资料配置一半了.

4.  修改web.xml与%tomcat_home%\conf\catalina\localhost下对应你的引用的配置文件

打开%tomcat_home%\conf\web.xml,在</web-app>的前面添加以下内容:

      <resource-ref>

    <description>db connection</description>

    <res-ref-name>jdbc/mysql</res-ref-name>

    <res-type>javax.sql.datasource</res-type>

    <res-auth>container</res-auth>

      </resource-ref>

    注意res-ref-name填写的内容要与在上文提到的jndi name名称一致.

进入%tomcat_home%\conf\catalina\localhost下,找到你的web应用对应的.xml文件(下面有我的web的目录结构),如    myweb.xml,并在此文件的下添入代码:

<resourcelink name="jdbc/mysql" global="jdbc/mysql" type="javax.sql.datasourcer"/>

 到这里,配置工作就基本完成了.

5.  其他注意事项


...   下一页
 ·windows服务端口大全    »显示摘要«
    摘要:internet 连接共享 (ics)/internet 连接防火墙 (icf) 服务的这个子组件对允许网络协议通过防火墙并在 internet 连接共享后面工作的插件提供支持。应用层网关 (alg) 插件可以打开端口和更改嵌入在数据包内的数据(如端口和 ip 地址)。文件传输协议 (ftp) 是唯一具有 windows server 2003 标准版和 windows server 2003 企......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE