The moose likes Websphere and the fly likes how to configure autocommit in Webshpere application server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "how to configure autocommit in Webshpere application server " Watch "how to configure autocommit in Webshpere application server " New topic
Author

how to configure autocommit in Webshpere application server

gokul maha
Greenhorn

Joined: Jun 27, 2006
Posts: 25
Hi,

I understand that autocommit is set to TRUE by default in DB2.
My application is deployed in WAS 6.1 server
Can I change autocommit setting in my server? If so where?

Thanks,
Gokul
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4489

Sounds like a websphere configuration question to me, moving...


JBoss In Action
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 23181

Gokul,
Check in the admin console under datasources. I don't remember off the top of my head if that setting can be changed via the console. If it can, that is the place to look.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Certs: SCEA Part 1, Part 2 & 3 & Core Spring 3
gokul maha
Greenhorn

Joined: Jun 27, 2006
Posts: 25
I already checked in WAS 6.1 console under datasources and was not able to find it. So was not sure where to look
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
If I remember your two choices are:

1. Define a custom property called autocommit=false under Datasource Custom properties.

2. Set the value of autocommit to false whenever you get the connection from datasource in your code.
gokul maha
Greenhorn

Joined: Jun 27, 2006
Posts: 25
Thanks Deepak.
I guessed it should be an additonal property we need to add to custom properties
 
 
subject: how to configure autocommit in Webshpere application server
 
jQuery in Action, 2nd edition