linghengqian opened a new issue, #30059: URL: https://github.com/apache/shardingsphere/issues/30059
## Question **For English only**, other languages will not accept. Before asking a question, make sure you have: - Googled your question. - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. - There is an unexpected `System.exit(0);` when specifying an example to generate `xa-narayana`. Refer to https://github.com/apache/shardingsphere/blob/b39eeeddb86ebb2ed56905f9199b04875c0e797d/examples/shardingsphere-jdbc-example-generator/src/main/resources/template/java/main/JDBCExampleMain.ftl . ```ftl public static void main(final String[] args) throws SQLException { Configuration config = new Configuration(); DataSource dataSource = config.createDataSource(); ExampleService exampleService = new ExampleService(dataSource); exampleService.run(); <#if transaction=="xa-narayana"> System.exit(0); </#if> } ``` - There seems to be no reason to call `System.exit(0);` here. There seems to be no reason to call `System.exit(0);` here. Neither #17454 nor #21288 mention the role of this. -- 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]
