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 hibernate ceteria ?

4 Answers   Fidelity,


How is hashset maintained in memory by java ?

0 Answers  


What is the difference between comparable and comparator in java.util pkg?

0 Answers  


What is iterator in the java collections framework? : java collections

0 Answers  


What is a constructor?

4 Answers  






lll

1 Answers  


What are maps interfaces in the java collections? : java collections

0 Answers  


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

0 Answers  


What are the uses of the set interfaces in the java collections? : java collections

0 Answers  


Difference between Spring framework and Struts framework?

12 Answers   IBM, L&T, VAM,


when exactly should we use throws ,and wen exactly should we use the try and catch for exceptional handling

0 Answers  


"Sun Certified Java Programmer" This is one String , we need to print SCJP, write the java code dynamically? pls reply this questions

6 Answers   Photon,


Categories