We subclassed the Spring class and put the reconnect in ourselves.
David
Type: Posts; User: davidr; Keyword(s):
We subclassed the Spring class and put the reconnect in ourselves.
David
We are trying to use MBeanServerConnectionFactoryBean in our application to make a JMX call to validate connectivity. If the server he is connected to goes down, we do not see anyway to force the...
The reason i want this change in, is for cases such as mine, where i do not need the full transaction management Spring provides and i cannot get the current configuration to work with DBCP.
Do i...
I looked around and did not see how i can submit my change to the project.
Here is my diff, of the SqlMapClientFactoryBean which allows us to use the Ibatis built in transaction manager and not be...
I have now tried to use the transaction manger, and the following lines appear in the log file,
2004-11-28 12:54:20,953 [main] DEBUG java.sql.PreparedStatement - {pstm-100001} PreparedStatement: ...
Juergen,
A simple solution to this would be to add a transasctionManager property to SQLMapClientfactoryBean. This would allow the user to not use Spring transaction management and allow the built...
Yes, I also thought i did not need to execute with transactions. And this is true when i use JNDI or the DriverManagerDataSource. But when i use DBCP, even when i set defaultautocommit to on, the...
Juergen, what i am asking is, if i have nothing more than inserts to do, do i still need to use the proxyfactorybean?
I have looked around and am still not sure what i need to do.
I have added the lines:
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">...
I think I understand the problem. When i use a datasource from Spring, Spring sets as the transaction manager the external transaction manager, which now requires me to set a transaction manager...
How do i set the transaction manager for my datasource when using IBATIS + Spring? Does it need to be in code or just my applicationContext?
Thanks,
David
Rod,
I have made a small example to show my problem:
Here is the table:
CREATE TABLE tgr.dummy
(data VARCHAR2(50))
here is the sqlmap insert:
<insert...
what xml parser are you using?
I have given the beans ids and not names and the error i am getting is from the XML parser. Perhaps it is the opposite, that i should use names instead of id's? I guess we can try that
I found a post that indicatees that this is doable but when we tried it and we used <ref bean= instead of ref local, but we still got an error from Spring telling us:
"An element with the identifier...
And can we reference beans from one file to another?
I am interested in being able to pull the properties from the PropertyResourceConfigurer. I use this for having a properties file that is both the $ replacements as well as stored in Properties class...
Rod, Are there any settings you would recommend that i can play with in DBCP to try to move past this? I really would like to use Spring and not IBATIS for my DataSource.
Thanks,
David
Yes, i assumed the issue was the autocommit. I played with autocommit with no success. I am not using any transaction management as this is a very simple insert I am doing in a Junit test. And when i...
Is anyone out there using IBATIS + DBCP (I am using with an oracle 9 database).
When i use Spring to define my DBCP datasource, inserts do not show up in the database, though it is accessing the...