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

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

0 Answers  


What is java collection? : java collections

0 Answers  


Should we create system software ( e.g operating system ) in java ?

0 Answers  


How to implement or use the singleton class in java?

3 Answers  


waht are architecture of web application?

2 Answers  






what protocols does JNDI provide an interface to?

1 Answers  


Runining mutiple tomcat server in a single machine is possible Yuo wil have to duplicate configuration with different port numbers

2 Answers   HCL,


where is JNDI being used in java platform?

2 Answers  


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

0 Answers  


how to delete cookie information?and when it will delete?

3 Answers   SolutionNET,


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

2 Answers  


What is markup language?

1 Answers  


Categories