If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Websphere & DB2 - setting isolation level globally

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-25-04, 09:12
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Websphere & DB2 - setting isolation level globally

Does anyone know how to set the default transaction isolation level for a DB2 JDBC connection under Websphere???

I set up my DataSource for the Server, but there's no option for it.... the only reference I've seen to it is in the EJB layer, but that's only for entity beans it seems. There's also a way to do it for a web app resource reference, but that doesn't apply to EJB components.

I also tried the db2cli.ini file, which apparantly is overridden by Websphere.

Finally I tried doing it through code, using con.setTransactionIsolation(), but that doesn't work if there's an existing global transaction, so we received exceptions.

Any ideas??? Thanks.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #2 (permalink)  
Old 05-25-04, 09:13
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
This is on Websphere 5.1 on Windows and Linux, same behaviour on both.

Type 2 driver.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On