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

Write a postfix expression to (a*(b+c/d)*d-e)

4 Answers   Adobe,


What is java collection? : java collections

0 Answers  


How do I find jre path in windows?

0 Answers  


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

0 Answers  


what is difference between struts1.2 and struts2.0

1 Answers  






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

0 Answers  


what is diff string and stringbuffer

7 Answers   CTS, HCL,


What are the classes in the java collection framework? : java collections

0 Answers  


What are the types of java collections? : java collections

0 Answers  


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

0 Answers  


what is the difference between banking and insurance domain?

2 Answers  


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

0 Answers  


Categories