Skip to content

Commit

Permalink
feat: remove uneccessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelAHM committed Dec 10, 2024
1 parent 5f35735 commit 135e28b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@ public TransactionManager transactionManagerNrtmUpdate(@Qualifier("nrtmMasterDat
public TransactionManager transactionManagerNrtmReadOnly(@Qualifier("nrtmSlaveDataSource") final DataSource dataSource) {
return new DataSourceTransactionManager(dataSource);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@
@Configuration
public class NrtmClientDataSourceConfigurations {

@Bean(name = "nrtmClientMasterInfoSource")
@Bean
public ComboPooledDataSource nrtmClientMasterInfoSource(@Value("${nrtm.client.info.database.url}") final String jdbcUrl,
@Value("${nrtm.client.info.database.username}") final String jdbcUser,
@Value("${nrtm.client.info.database.password}") final String jdbcPass) throws PropertyVetoException {
return createDataSource(DRIVER_CLASS_NAME, jdbcUrl, jdbcUser, jdbcPass);
}

@Bean(name = "nrtmClientSlaveInfoSource")
@Bean
public ComboPooledDataSource nrtmClientSlaveInfoSource(@Value("${nrtm.client.info.slave.database.url}") final String jdbcUrl,
@Value("${nrtm.client.info.slave.database.username}") final String jdbcUser,
@Value("${nrtm.client.info.slave.database.password}") final String jdbcPass) throws PropertyVetoException {
return createDataSource(DRIVER_CLASS_NAME, jdbcUrl, jdbcUser, jdbcPass);
}

@Bean(name = "nrtmClientMasterDataSource")
@Bean
public ComboPooledDataSource nrtmClientMasterDataSource(@Value("${nrtm.client.database.url}") final String jdbcUrl,
@Value("${nrtm.client.database.username}") final String jdbcUser,
@Value("${nrtm.client.database.password}") final String jdbcPass) throws PropertyVetoException {
return createDataSource(DRIVER_CLASS_NAME, jdbcUrl, jdbcUser, jdbcPass);
}

@Bean(name = "nrtmClientSlaveDataSource")
@Bean
public ComboPooledDataSource nrtmClientSlaveDataSource(@Value("${nrtm.client.slave.database.url}") final String jdbcUrl,
@Value("${nrtm.client.slave.database.username}") final String jdbcUser,
@Value("${nrtm.client.slave.database.password}") final String jdbcPass) throws PropertyVetoException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.io.BufferedReader;
Expand Down

This file was deleted.

0 comments on commit 135e28b

Please sign in to comment.