惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
量子位
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
爱范儿
爱范儿
博客园 - 【当耐特】
Vercel News
Vercel News
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
博客园 - 叶小钗
博客园_首页
V
Visual Studio Blog
宝玉的分享
宝玉的分享
B
Blog
MyScale Blog
MyScale Blog
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
V
V2EX

博客园 - web报表

eclispe 无法启动调试 cannot connect to VM 工作流之设置表访问权限 利用工作流返回达到无限次重复办理业务的过程 eworkflow工作流系统在iis中发布 ie8用ajax访问不能每次都刷新的问题 视频演示(动态指定执行人+指定申请人的上级) 视频演示eworkflow集成定制aspx页面的过程 利用开发框架中的标签库集成报表工具 流程设计器之标签工具 如何设置流程的默认版本 mysql数据库字符集的设置 struts的标签库出现Failed to load or instantiate TagExtraInfo class 简单设置eworkflow条件的方式 流程多节点调用同一张业务表单的锚点问题 java工作流软件发送邮件的方案 工作流软件是未来web的支柱 自定义表单中多附件上传控件的实现方案 流程节点中发送邮件的解决方案 财务报销流程示例
tomcat6配置jndi连接数据库的方式
web报表 · 2013-08-26 · via 博客园 - web报表

eworkflow工作流+eform表单+ebiao报表集成在一起,用tomcat6发布,并用jndi连接数据库,数据库是sqlserver2005,配置如下:

1、在tomcat6\conf\context.xml文件的Context节点中增加下面节点:

<Resource name="jdbc/eworkflow"  auth="Container" type="javax.sql.DataSource" username="sa" password="" driverClassName="net.sourceforge.jtds.jdbc.Driver" url="jdbc:jtds:sqlserver://localhost:1433;databaseName=eworkflow-java;integratedSecurity=true;" maxActive="100" maxIdle="30"  maxWait="10000"/>

2、方成软件web-inf\fcconfig.xml文件中第一个ds节点配置如下:

<ds name="eworkflow" dbType="sqlserver"  type="jndi" jndiName="jdbc/eworkflow" jndiPrefix="java:/comp/env" />

3、web-inf\web.xml文件中web-app节点中增加下面节点:

   <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/eworkflow</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>

 4、通过数据源访问数据库,由于数据源由tomcat创建并维护,所以必须把数据库连接驱动包复制到tomcat的lib目录下。

  这里把jtds-1.2.jar复制到tomcat\lib目录中。

启动 tomcat6,在浏览器中输入:http://localhost:8080/ebiao,登录系统。