Replies: 11 comments
-
The title of this issue is not well enough, could you please update to a more understandable title by summarizing the content? |
Beta Was this translation helpful? Give feedback.
-
I've updated the issue I'm asking. Please help. |
Beta Was this translation helpful? Give feedback.
-
What I mean is that the |
Beta Was this translation helpful? Give feedback.
-
Okay. The title is updated |
Beta Was this translation helpful? Give feedback.
-
What is |
Beta Was this translation helpful? Give feedback.
-
Yes, our custom data sources provide the ability to dynamically switch between data sources. |
Beta Was this translation helpful? Give feedback.
-
Based on your description, the title should be modified. So, is your question about how to dynamically switch data sources, or how to adapt to a custom connection pool? |
Beta Was this translation helpful? Give feedback.
-
I will update the title to accommodate custom connection pooling |
Beta Was this translation helpful? Give feedback.
-
I apologize for the inconvenience, but apart from modifying the source code, ShardingSphere does not currently support custom data source connection pools. However, ShardingSphere does support dynamic switching of data sources through the registry center. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. Could you give me some tutorial about this? |
Beta Was this translation helpful? Give feedback.
-
If not an issue, let's move it to discussion. |
Beta Was this translation helpful? Give feedback.
-
In the official guidance given, the configuration of the data source is fixed. Therefore, we do not explicitly provide getter setter methods to set the properties of the data source. When I inject such a data source into sharding-jdbc, the following error occurs:
The error occurs in the following line of code because of standardProps is null
These properties are obtained from the DataSourcePoolReflection, which obtains them in a reflective manner. However, my custom datasource does not have these getter methods! I would like to know what conditions must be fulfilled for a custom data source
Beta Was this translation helpful? Give feedback.
All reactions