File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes MSSQL Server datasource wont commit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "MSSQL Server datasource wont commit" Watch "MSSQL Server datasource wont commit" New topic

MSSQL Server datasource wont commit

Jay Olsen

Joined: Jan 26, 2008
Posts: 10

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.
It is sorta covered in the JavaRanch Style Guide.
subject: MSSQL Server datasource wont commit
It's not a secret anymore!