dachuan9e edited a comment on issue #11416:
URL: 
https://github.com/apache/shardingsphere/issues/11416#issuecomment-883954310


   Not this.  Here it create datasource using these codes.  I will fixed. And 
also here is another problem that the datasource hasn't specific pool name.
   
   AbstractBootstrapInitializer
   ```java
        private static Map<String, DataSource> createDataSources(final String 
schemaName, final Map<String, DataSourceParameter> dataSourceParameters) {
           Map<String, DataSource> result = new 
LinkedHashMap<>(dataSourceParameters.size(), 1);
           for (Entry<String, DataSourceParameter> entry : 
dataSourceParameters.entrySet()) {
               DataSource dataSource = 
JDBCRawBackendDataSourceFactory.getInstance().build(schemaName + "/" + 
entry.getKey(), entry.getValue());
               if (null != dataSource) {
                   result.put(entry.getKey(), dataSource);
               }
   ```
   
   JDBCRawBackendDataSourceFactory
   ```java
       public DataSource build(final String dataSourceName, final 
DataSourceParameter dataSourceParameter) {
           HikariConfig config = new HikariConfig();
           .......
           DataSource result;
           try {
               result = new HikariDataSource(config);
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to