下一个帖子:
http://community.csdn.net/Expert/topic/5733/5733673.xml?temp=.8231012
http://community.csdn.net/Expert/topic/5733/5733673.xml?temp=.8231012
解决方案 »
- 怎样根据表单提交的性别来让结果显示不同颜色??
- 写jms时用openjms产生的问题
- web配置 池的问题。
- Axis2 1.1 问题(服务部署成功,客户端调用问题,对你来说容易,但是我找不到错误)
- proxool问题
- 请问STRUTS高手,js中的logcation.replace()是否会丢失session?
- JDBC连接ORACLE 出现的问题
- <html:error>标签从.properties文件中提取中文字符串显示时, 出现乱码怎么解决
- 客户端调用Ejb问题
- 请问HotSpot JVM在JDK8取消了永久代(PermGen)代之元空间(Metaspace)的意义何在?
- 如何实现?
- Struts+Spring+Hibernate整合报空指针的疑问
<property name="dataSource">
<ref local="dataSourceDjk"/>
</property>
<property name="jtaTransactionManager">
<ref bean="jotm" />
</property>
<property name="lobHandler"><ref local="oracleLobHandler"/></property>
</bean>
<bean id="dataSourceCgk" class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">
<property name="dataSource"><ref local="innerDataSourceDjk"/></property>
<property name="transactionManager"><ref local="jotm"/></property>
<property name="maxSize"><value>10</value></property>
<property name="user"><value>cgklogapp</value></property>
<property name="password"><value>cgklogapp2007</value></property>
</bean><bean id="sessionFactoryCgk" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="mappingDirectoryLocations">
...
</property>
<property name="hibernateProperties">
<props>
<prop key="show_sql">true</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
</props>
</property>
<property name="dataSource">
<ref local="dataSourceCgk"/>
</property>
<property name="jtaTransactionManager">
<ref bean="jotm" />
</property>
<property name="lobHandler"><ref local="oracleLobHandler"/></property>
</bean><bean id="oracleLobHandler" class="org.springframework.jdbc.support.lob.OracleLobHandler">
<property name="nativeJdbcExtractor"><ref local="nativeJdbcExtractor"/></property>
</bean>
<bean id="nativeJdbcExtractor" class="org.springframework.jdbc.support.nativejdbc.SimpleNativeJdbcExtractor">
</bean>
<bean id="innerDataSourceKjxx" class="org.enhydra.jdbc.standard.StandardXADataSource">
<property name="transactionManager"><ref local="jotm"/></property>
<property name="driverName"><value>oracle.jdbc.driver.OracleDriver</value></property>
<property name="url"><value>jdbc:oracle:thin:@10.67.40.206:1521:zqy</value></property></bean><bean id="dataSourceKjxx" class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">
<property name="dataSource"><ref local="innerDataSourceKjxx"/></property>
<property name="transactionManager"><ref local="jotm"/></property>
<property name="maxSize"><value>10</value></property>
<property name="user"><value>logdb</value></property>
<property name="password"><value>logdb</value></property>
</bean><bean id="sessionFactoryKjxx" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="mappingResources">
...
</property>
<property name="hibernateProperties">
<props>
<prop key="show_sql">true</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
</props>
</property>
<property name="dataSource">
<ref local="dataSourceKjxx"/>
</property>
<property name="jtaTransactionManager">
<ref bean="jotm" />
</property>
<property name="lobHandler"><ref local="oracleLobHandler"/></property>
</bean>
<bean id="dataSourceBzjh" class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">
<property name="dataSource"><ref local="innerDataSourceDjk"/></property>
<property name="transactionManager"><ref local="jotm"/></property>
<property name="maxSize"><value>10</value></property>
<property name="user"><value>bzjhcx</value></property>
<property name="password"><value>bzjhcx123</value></property>
</bean>
<bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="get*">PROPAGATION_REQUIRED</prop>
<prop key="find*">PROPAGATION_REQUIRED</prop>
<prop key="*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
<bean id="sessionFactoryBzjh" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="mappingResources">
<list>
...
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="show_sql">true</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
</props>
</property>
<property name="dataSource">
<ref local="dataSourceBzjh"/>
</property>
<property name="lobHandler"><ref local="oracleLobHandler"/></property>
</bean>
<bean id="MPjupdateDAO" class="com.zqy.domain.cgk.MPjupdateDAO">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean></beans>
其中一共有4个数据源,首先运行没有问题,第一次刷新页面,每一个都可以读取数据库.
但是读取另一个数据库之后,再回头来读第一个数据库就出错了:
严重: Servlet.service() for servlet action threw exception
java.sql.SQLException: ORA-00942: table or view does not exist请问我的错误在哪里呢?帮帮忙阿,我有很多分,可以把所有的分都贡献出来...!期待..
http://freeliver.blog.sohu.com/61814157.html
<property name="userTransactionName">
<value>weblogic/transaction/UserTransaction</value>
</property>
</bean-->
<!-- 事务拦截配置 -->
<bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager" ref="transactionManager"/>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED</prop>
<prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean>
<bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<value>*Bo</value>
</property>
<property name="interceptorNames">
<list>
<value>transactionInterceptor</value>
</list>
</property>
</bean>
拦截配置我也配了阿,关键是现在的问题我找不到原因阿