Use datasource JNDIIf you wish to use JNDI for database configuration, you can replace a series of datasource configurations with when you are using ShardingSphere-JDBC on application servers(e.g. Tomcat). Using JNDI datasourceUsing JNDI datasource