![]() Thus, first of all, let's see how to define The interceptor injector: String names = beanFactory.getBeanNamesForType(TransactionInterceptor.class) īeanDefinition bd = beanFactory.getBeanDefinition(name) īd.setBeanClassName(()) ![]() The game is simple :) We only need to replicate the old XML configuration in Java, fitting with some little changes in Spring's way of defining a DomainTransactionInterceptorInjector. Following up the post on Spring dynamic transaction management our goal is to show a way to make Spring Boot dynamically select the proper transaction manager for a specific transaction. 5.As you probably already know Spring Boot and Java based configuration have almost completely replaced the old way of configuring and building Spring-based applications. It doesn't have a single solution for all cases. At the same time, we wouldn't need to deal with the costly distributed transactions.īut we have to be aware that ensuring eventual consistency is a complex task.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |