Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6618487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:50:25+00:00 2026-05-25T20:50:25+00:00

I was going through ACID properties regarding Transaction and encountered the statement below across

  • 0

I was going through ACID properties regarding Transaction and encountered the statement below across the different sites
ACID is the acronym for the four properties guaranteed by transactions: atomicity, consistency, isolation, and durability.

**My question is specifically about the phrase.

guaranteed by transactions

**. As per my experience these properties are not taken care by
transaction automatically. But as a java developer we need to ensure that these properties criteria are met.

Let’s go through for each property:-

  1. Atomicity:- Assume when we create the customer the account should be created too as it is compulsory. So now during transaction
    the customer gets created while during account creation some exception oocurs. So the developer can now go two ways: either he rolls back the
    complete transaction (atomicity is met in this case) or he commits the transaction so customer will be created but not the
    account (which violates the atomicity). So responsibility lies with developer?

  2. Consistency:- Same reason holds valid for consistency too

  3. Isolation :- as per definition isolation makes a transaction execute without interference from another process or transactions.
    But this is achieved when we set the isolation level as Serializable. Otherwis in another case like read commited or read uncommited
    changes are visible to other transactions. So responsibility lies with the developer to make it really isolated with Serializable?

  4. Durability:- If we commit the transaction, then even if the application crashes, it should be committed on restart of application. Not sure if it needs to be taken care by developer or by database vendor/transaction?

So as per my understanding these ACID properties are not guaranteed automatically; rather we as a developer sjould achieve them. Please let me know
if above understanding regarding each point is correct? Would appreciate if you folks can reply for each point(yes/no will also do.

As per my understanding read committed should be most logical isolation level in most application, though it depends on requirement too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:50:26+00:00Added an answer on May 25, 2026 at 8:50 pm

    The transactions guarantees ACID more or less:

    1) Atomicity. Transaction guarantees all changes are made or none of them. But you need to manually set the start and end of a transaction and manually perform commit or rollback. Depending on the technology you use (EJB…), transactions are container-managed, setting the start and end to the whole “method” you are creating. You can control by configuration if a method invoked requires a new transaction or an existing one, no transaction…

    2) Consistency. Guaranteed by atomicity.

    3) Isolation. You must define the isolation level your application needs. Default value is defined depending upon the database, container… The commonest one is READ COMMITTED. Be careful with locks as can cause dead-lock depending on your logic and isolation level.

    4) Durability. Managed entirely by the database. If your commit executes without error, nearly all database guarantees durability of changes, but some scenarios can cause to not guarantee that (writes to disk are cached in memory and flushed later…)

    In general, you should be aware of transactions and configure it in the container of declare by code the star and end (commit, rollback).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While going through a Zend tutorial , I came across the following statement: Note
am going through enterprise session bean material.i have doubts regarding below oints :- 1)
Just going through the sample Scala code on Scala website, but encountered an annoying
while going through some of the mili source code I came across a struct
While going through the exercises, I came across something that, even after research, I
After going through few articles about performance, Not able to get this statement exactly.
I am going through a book Lift in action and I encountered something I
Going through the WebView demo , I noticed the following statement: mWebView.loadUrl(javascript:wave()); It works,
When going through registration, a lot of sites will disallow the use of symbols
While going through some C code having inline assembly I came across the .byte

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.