首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

spring一个多数据源配备记录jta、jotm

2012-09-05 
spring一个多数据源配置记录jta、jotm最近一直在测试 spring jta jotm ibatis的 事务配置,但是 由于 ?中 在

spring一个多数据源配置记录jta、jotm

最近一直在测试 spring jta jotm ibatis的 事务配置,但是 由于

?

中 在ibatis上 如果是readonly的 执行插入操作还是能插入,故换到hibernate进行测试

?

为了以后方便记录下来配置文件方法:

?

在配置hibernate时候还有一个重要的问题就是 多数据源配置hibernate时候

?

?

Caused by: org.hibernate.cache.CacheException: Attempt to restart an already started EhCacheProvider.
Use sessionFactory.close()? between repeated calls to buildSessionFactory.

?Consider using net.sf.ehcache.hibernate.SingletonEhCacheProvider.
?
?---------------------
?org.hibernate.cache.CacheException: Attempt to restart an already started EhCacheProvider.
?Use sessionFactory.close()? between repeated calls to buildSessionFactory.
?Consider using net.sf.ehcache.hibernate.SingletonEhCacheProvider.
?
?Error from? ehcache was: Cannot parseConfiguration CacheManager.
?Attempt to create a new instance of CacheManager using
?
?the diskStorePath "C:\Tomcat5.0\temp" which is already used by an existing CacheManager.
?The source of the configuration was classpath.
?
?-----------------

?

不知道什么原因 后来不断更新几个与hibernate相关的required 的jar包版本 后可以正常运行,就没深入。

?

?

?

?

?

?

?

?

?

?

The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\\ehcache_auto_created_1298696337296.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2011-02-26 12:58:57 [INFO]-[org.hibernate.impl.SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
2011-02-26 12:58:57 [INFO]-[org.hibernate.cache.UpdateTimestampsCache] starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache
2011-02-26 12:58:57 [WARN]-[org.hibernate.cache.EhCacheProvider] Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults.
2011-02-26 12:58:57 [INFO]-[org.hibernate.cache.StandardQueryCache] starting query cache at region: org.hibernate.cache.StandardQueryCache
2011-02-26 12:58:57 [WARN]-[org.hibernate.cache.EhCacheProvider] Could not find configuration [org.hibernate.cache.StandardQueryCache]; using defaults.

热点排行