没有合适的资源?快使用搜索试试~ 我知道了~
spring+jotm 多数据源事务管理(二)hibernate
需积分: 10 5 下载量 166 浏览量
2013-07-02
23:41:10
上传
评论 2
收藏 38KB DOCX 举报
温馨提示
试读
9页
spring+jotm 多数据源事务管理(二)hibernate 使用hibernate关联jotm也很方便,先看一个没有使用jotm的例子:
资源推荐
资源详情
资源评论
spring+jotm 多数据源事务管理 ( 二 )hibernate
使用 hibernate 关联 jotm 也很方便,先看一个没有使用 jotm 的例子:
Xml 代码
1. <?xmlversion="1.0"encoding="UTF-8"?>
2. <beansxmlns="http://www.springframework.org/schema/beans"
3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:
p="http://www.springframework.org/schema/p"
4. xmlns:aop="http://www.springframework.org/schema/aop"xmlns:contex
t="http://www.springframework.org/schema/context"
5. xmlns:tx="http://www.springframework.org/schema/tx"xmlns:uti
l="http://www.springframework.org/schema/util"
6. xmlns:jee="http://www.springframework.org/schema/jee"
7. xsi:schemaLocation="
8. http://www.springframework.org/schema/aophttp://
www.springframework.org/schema/aop/spring-aop-2.5.xsd
9. http://www.springframework.org/schema/beanshttp://
www.springframework.org/schema/beans/spring-beans-2.5.xsd
10. http://www.springframework.org/schema/contexthttp://
www.springframework.org/schema/context/spring-context-2.5.xsd
11. http://www.springframework.org/schema/txhttp://
www.springframework.org/schema/tx/spring-tx-2.5.xsd
12. http://www.springframework.org/schema/utilhttp://
www.springframework.org/schema/util/spring-util-2.5.xsd
13. http://www.springframework.org/schema/jeehttp://
www.springframework.org/schema/jee/spring-jee-2.5.xsd">
14.
15.
16. <beanid="dataSource1"
17. class="org.apache.commons.dbcp.BasicDataSource">
18. <propertyname="driverClassName">
19. <value>${datasource1.driver}</value>
20. </property>
21. <propertyname="url">
22. <value>${datasource1.url}</value>
23. </property>
24. <propertyname="username">
25. <value>${datasource1.username}</value>
26. </property>
27. <propertyname="password">
资源评论
tianqilester
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功