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

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - 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,登录系统。