This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes MSSQL Server datasource wont commit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "MSSQL Server datasource wont commit" Watch "MSSQL Server datasource wont commit" New topic
Author

MSSQL Server datasource wont commit

Jay Olsen
Greenhorn

Joined: Jan 26, 2008
Posts: 10
Hi,

I set up a connection to my datasource in Websphere. This is then configured in my application using the spring config below. As you can see it uses JNDI to look up the resource.





When I use Oracle, the above configuration works beautifully and when I do a database insert, the data is committed to the database. However, when I change to MS SQL Server using the OPTA driver, the code executes successfully, however, the data never appears in the database. It looks like commit is never called on the datasource.

How can I get my datasource to commit the changes following completion of the task?

Any help greatly appreciated.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: MSSQL Server datasource wont commit
 
Similar Threads
Generic DAO using Spring
DataAccess using Spring...
Spring DAO and applicationConfig
Problem in injecting interface
Problem with database timeout using Hibernate