Important Questions on Transaction Management

Jan 10 • Resources • 2989 Views • No Comments on Important Questions on Transaction Management

In a commitment to help you people with the difficulties you face regarding various aspects in your education, here are the important questions on Transaction Management-

Q.1 What is JTA?
Ans. Java Transaction API(JTA) specifies standard Java Interfaces between transaction manager and the parties involved in a distributed transaction system the resource manager, the application server and the Transactional applications.

Q.2 What is bean managed transaction?
Ans. In EJB transaction can be maintained by the container or developer can write own code to maintain the transaction. If a developer dose not want a Container to manage transactions, developer can write own code to maintain the database transaction.

Transaction Management

Transaction Management

Q.3 Can Entity Beans have no create() methods?
Ans. Entity Bean can have no create() methods. Entity have no create() method, when
entity bean is not used to store the data in the database. In this case entity bean is used to retrieve the data from database.

 

Q.4 What is Bean Factory?
Ans. A bean Factory is like a factory class that contains a collection of beans. The Bean Factory holds Bean Definition of multiple beans within itself and then instantiates the bean whenever asked by clients.

Q.5 What is Spring?
Ans. Spring is an open source framework created to address the complexity of enterprise application development. One of the chief advantages of the Spring framework is its layered architecture, which allows you to be selective about which of its components to use while also providing a cohesive framework for J2EE application development.

Q.6 What are the advantages of Spring Framework?
Ans.The advantages of Spring are as follows:
a) Spring has layered architecture. Use what you need and leave what you don’t need now.
b) Spring Enables POJO programming. There is no behind the scene magic here. POJO programming enables continuous integration and testability.
c) Dependency Injection and Inversion of Control simplifies JDBC.
d) Open source and no vendor lock-in.

Q.7 What are the call back methods in Session Bean?
Ans. Call back methods are called by the container to notify the important events to the beans in its life cycle.The callback methods are defined in the javax EJB Entity Bean interface.The callback methods example are ejbCreate(),ejbPassivate() and ejbActivate().

Q.8 How can I handle transaction isolation?
Ans. Connection .setTransactionIsolation() using this method.

Q.9 Does the J2EE platform support nested transactions?
Ans. NO, the J2EE platform supports nested transactions its only support flat transactions.

Q.10 Can an entity bean use bean-managed transaction demarcation?
Ans. No, Entity beans always use container-managed transaction demarcation.Session beans can use either container-managed or bean-managed transaction demarcation, but not at the same time.

Get the Pdf of the questions on Transaction Management hereĀ QUESTIONS ON TRANSACTION MANAGEMENT WITH ANSWERS PDF

Feel Free to give your suggestions for more improvement. Write it in the comment box below the post.

Related Articles-
Database Management System
Global Strategic Management

Tell us Your Queries, Suggestions and Feedback

Your email address will not be published.

« »