M Sach
M Sach

Reputation: 34424

Datasource and transaction manager scope in Spring?

In a spring application what should be the scope of datasource and transaction manager?As per my understanding both should be singleton. Is that correct?

Upvotes: 0

Views: 617

Answers (1)

Mac
Mac

Reputation: 1642

Absolutely. Those aren't the kinds of objects that should have more than one floating around.

Upvotes: 4

Related Questions