How do you create UserTransaction Object? How do you
rollback a transaction in a method?



How do you create UserTransaction Object? How do you rollback a transaction in a method?..

Answer / gnani

the user transactin object created using session
Transaction tx=session.beginTransaction();
the rollback is:
tx.rollback();

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More Java J2EE AllOther Interview Questions

What is need of DAO? Write one simple DAO example?

2 Answers   IBM,


How to use ANT?

2 Answers  


what is the IDE that you have used to write your java programs?

2 Answers   Inforica, Interface Software,


what is filter ?

2 Answers   SolutionNET,


How is hashset maintained in memory by java ?

0 Answers  






How to implement or use the singleton class in java?

3 Answers  


Why do you use Context Object

2 Answers   HCL,


Is it Mandatory to map each pojo class variable with table column in Hibernate? Is there any alternative to skip some of those? Thanks in advance...

2 Answers   Span Systems,


what is the difference between banking and insurance domain?

2 Answers  


Which sorting algorithm is used by collections.sort() in java ?

0 Answers  


What are the considerations to be made in case of loops in java ?

0 Answers  


which book is the best for preparing for SCWCD 1.5

4 Answers   Google,


Categories