Wednesday, September 22, 2010

Committed data does not appear on the new AJAX call with Hibernate

We had a scenario where we commit some records during one AJAX call in the DB using Hibernate, but the immediate next AJAX call could not show it on the same page. We had committed the data properly, but the record refuses to show up in the list.

We did not have any second level cache, so we were debugging it based on the Session closure and opening. Issue turned out to be that the proper transaction isolation level was not set in hibernate.cfg.xml file.

I am not going to go in depth on Transaction Isolation levels here, which you can read from here

The issue was resolved after we set the Isolation level with the following line in the config XML :
<property name="hibernate.connection.isolation">2</property>

An explanation on the numbers to be used for your level can be found here (look for isolation)

224 comments:

«Oldest   ‹Older   201 – 224 of 224
Anonymous said...

tramadol online tramadol hcl generic - buy tramadol from usa

Anonymous said...

where to buy tramadol buy tramadol valium online - order tramadol online usa

Anonymous said...

tramadol 100mg order tramadol online 100mg - tramadol high booze

Anonymous said...

xanax for anxiety order xanax 2mg online - can u buy xanax online

Anonymous said...

order tramadol online cod discount tramadol online - tramadol hcl shelf life

Anonymous said...

tramadol buy tramadol and ultram - ultram tramadol addiction

Anonymous said...

xanax online xanax withdrawal blurred vision - xanax drug test how long

Anonymous said...

One heal is to comprise cholesterol include substance, fish,
fowl, and dairy farm products. Doctors recommend ever-changing the
dieting from a highschool-fat diet to a medico testament ofttimes give notice that
the Affected role alters his/her diet and takes on a unconstipated use program.


Here is my web-site deposits natural remedies cholesterol for
my page: deposits natural remedies cholesterol for

Anonymous said...

buy tramadol cash on delivery tramadol for dogs with cancer - tramadol for dogs and humans the same

Anonymous said...

buy tramadol medication where to order tramadol online - tramadol hcl 50 mg picture

Anonymous said...

It might with the Wembe sweetheart Set relaxing and calming.
I invitedMisha D. Black cat, writer,performer & Old NBC
by educating low-income families on food programs available to them and
their children. according to some who a nexus / banner with your merged identification codification.



my web site ... click here

Anonymous said...

xanax online xanax xr buy online - generic xanax india

Anonymous said...

cialis online are generic cialis any good - cialis price in costco

Anonymous said...

buy cialis with paypal cialis online drugs - where can i buy cialis with paypal

Anonymous said...

xanax online buy xanax online with paypal - 1mg of xanax for sleep

Anonymous said...

buy tramadol for dogs dosage of tramadol 50mg - buy tramadol online from usa

Anonymous said...

klonopin medication dosage of klonopin for dogs - generic klonopin effective

Anonymous said...

03 cheap prednisone online - cheap prednisolone http://www.prednisoneonlinerx.net/index.html, [url=http://www.prednisoneonlinerx.net/index.html]cheap generic prednisone [/url]

Anonymous said...

4, generic meridia - meridia for sale http://www.meridiaforyourdiet.net/#cheap-sibutramine, [url=http://www.meridiaforyourdiet.net/#cheap-sibutramine]sibutramine diet pills[/url]

Anonymous said...

order tramadol no prescription tramadol 50 mg cheap - buy tramadol no prescription usa

Anonymous said...

all, order diazepam online - diazepam for sale no prescription http://www.diazepamhowtopurchase.com/#diazepam-for-sale-no-prescription , [url=http://www.diazepamhowtopurchase.com/#purchase-valium-online ]purchase valium online [/url]

Anonymous said...

ooo, propecia no prescription - finasteride 5mg http://youacting.com/#propecia-online, [url=http://youacting.com/#generic-finasteride]finasteride for sale [/url]

Anonymous said...

Highly energetic post, I enjoyed thаt a lot. Will theге be a part 2?


Also visіt my weblog :: hcg weight loss diet - www.garyreckard.com
my webpage - hcg snohomish

Anonymous said...

http://www.njbic.org/online/buytramadol/#1939 cheap tramadol - buy tramadolwith cod

«Oldest ‹Older   201 – 224 of 224   Newer› Newest»