adplus-dvertising
frame-decoration

Question

You can assign a component name in this annotation and have the session factory autowired by the Spring IoC container with @Autowired.

a.

True

b.

False

c.

May be

d.

Can't say

Answer: (a).True

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. You can assign a component name in this annotation and have the session factory autowired by the Spring IoC container with @Autowired.

Similar Questions

Discover Related MCQs

Q. Spring provides to simplify your DAO implementation by managing entitymanagers and transactions for you:-

Q. Annotation used for entity manager injection in EJB components.

Q. To use the context injection approach, you can declare an entity manager field in your DAO and annotate it with the @PersistenceContext annotation.

Q. JpaTemplate will translate the native JPA exceptions into exceptions in Spring DataAccessException hierarchy.

Q. Transactions can be described with key properties:-

Q. To access a database running on the Derby server, you have to add:-

Q. Spring’s transaction support offers a set of technology-independent facilities, including transaction managers.

Q. Spring’s core transaction management abstraction is based on the interface:-

Q. The PlatformTransactionManager interface provides methods for working with transactions:

Q. Spring has several built-in implementations of PlatformTransactionManager interface for use with different transaction management APIs.

Q. A transaction manager is declared in the Spring IoC container as a normal bean.

Q. Method that allows you to start a new transaction (or obtain the currently active transaction).

Q. PlatformTransactionManager is an abstract unit for transaction management.

Q. Method to start a new transaction with that definition:-

Q. To help you control the overall transaction management process and transaction exception handling.

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.

Q. A TransactionTemplate can accept a transaction callback object that implements:-

Q. Spring (since version 2.0) offers a transaction advice that can be easily configured via the:-

Q. You can omit the transaction-manager attribute in the element if your transaction manager has the name transactionManager.

Q. A transaction propagation behavior can be specified by the:-