Question
a.
tx:annotation
b.
tx:annotationdriven
c.
tx:annotation-driven
d.
none of the mentioned
Posted under Java Spring Framework
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. In the bean configuration file for Hibernate (i.e., beans-hibernate.xml), you have to declare a HibernateTransactionManager instance for this application and enable declarative...
Similar Questions
Discover Related MCQs
Q. HibernateTemplate will translate the native Hibernate exceptions into exceptions in Spring DataAccessException hierarchy.
View solution
Q. Annotation for Hibernate exceptions to be translated into Spring DataAccessException for consistent exception handling:-
View solution
Q. Instance to translate the native Hibernate exceptions into data access exceptions in Spring DataAccessException hierarchy.
View solution
Q. You can assign a component name in this annotation and have the session factory autowired by the Spring IoC container with @Autowired.
View solution
Q. Spring provides to simplify your DAO implementation by managing entitymanagers and transactions for you:-
View solution
Q. Annotation used for entity manager injection in EJB components.
View solution
Q. To use the context injection approach, you can declare an entity manager field in your DAO and annotate it with the @PersistenceContext annotation.
View solution
Q. JpaTemplate will translate the native JPA exceptions into exceptions in Spring DataAccessException hierarchy.
View solution
Q. Transactions can be described with key properties:-
View solution
Q. To access a database running on the Derby server, you have to add:-
View solution
Q. Spring’s transaction support offers a set of technology-independent facilities, including transaction managers.
View solution
Q. Spring’s core transaction management abstraction is based on the interface:-
View solution
Q. The PlatformTransactionManager interface provides methods for working with transactions:
View solution
Q. Spring has several built-in implementations of PlatformTransactionManager interface for use with different transaction management APIs.
View solution
Q. A transaction manager is declared in the Spring IoC container as a normal bean.
View solution
Q. Method that allows you to start a new transaction (or obtain the currently active transaction).
View solution
Q. PlatformTransactionManager is an abstract unit for transaction management.
View solution
Q. Method to start a new transaction with that definition:-
View solution
Q. To help you control the overall transaction management process and transaction exception handling.
View solution
Q. You just have to encapsulate your code block in a callback class that implements the TransactionCallback interface and pass it to the TransactionTemplate execute method for execution. In this way, you don’t need to repeat the boilerplate transaction management code for this block.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Spring Framework? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!