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 diff string and stringbuffer

7 Answers   CTS, HCL,


"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,


whats the relation ship between LDAP and JNDI?

1 Answers  


what is filter ?

2 Answers   SolutionNET,


What is the use of log4j and how to make use of that in a application?

2 Answers  


how to deploy the web application ?

2 Answers   Accent,


what debugging tool that can be used to debug the java programs?

1 Answers   Inforica,


What are the differences between the java collection and the java list? : java collections

0 Answers  


What is an Ioc pattern? There are assemblies in .net for establishing this task, Whats the special in Java /j2ee technologies about IOC

2 Answers  


What are the different types of features of the java collections framework? : java collections

0 Answers  


What is difference between Application Server and Web Server?

1 Answers   Logica CMG, SCS,


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

0 Answers  


Categories