What database? Is it query or DML statements? What Driver (XA or Non-XA)? If it is DML statement and non XA driver then you need to disable "auto commit" option in the connection.
and then finally decide to either call commit() or rollback() before closing the connection.
Actually I am still studying java& JDBC concepts. I got this question from my friend. Please feel free and explain me about this in detail. This site is for to support people I guess no matter what.
Thanks,<br />Ranga.<br />Life is precious so enjoy the life each moment and utilise it at the same time.
Originally posted by ranga shreya: Actually I am still studying java& JDBC concepts. I got this question from my friend. Please feel free and explain me about this in detail. This site is for to support people I guess no matter what.
You and your friend need to learn how to use Google. A search for "jdbc transactions" has the answer in plain simple terms on about every 4th or 5th page.
However, you obviously need to start with the basics (where this is well covered).