Jiejie report connects to the KingBaseES 6.1 Database

Source: Internet
Author: User

Designer: 1. Add a database driver.

Choose toolbar> preferences> report runtime configuration> database driver configuration, click Add, select a database driver, and click open ], add the database driver to the database driver configuration list and click OK.

2. Create a data source. Select a database type. You can select any one of the following options because the designer does not have the KingbaseES option. Then you need to manually modify the JdbcDriver and url options, as shown below:

 

Click "check data source". If no error message is displayed, the data source is successfully connected. Click "Finish.

Server: Add a data source to a node in the WEB-INF \ resources \ config. xml configuration file as follows:

 
 
  1. <DataSource>
  2. <! -- Data Source Name, consistent with the data source name of the report template in the designer -->
  3. <Name> KB_DS </Name>
  4. <! -- The JNDI search prefix is set based on the specific server type. If there is no prefix, the node content is blank, but the node still needs to be retained,
  5. That is, <JNDIPrefix> </JNDIPrefix> --> <JNDIPrefix> java: comp/env/</JNDIPrefix>
  6. <! -- The JNDI Resource Name of the data source, which is consistent with the JNDI Resource Name of the Application Server -->
  7. <JNDIName> kingbasees </JNDIName>
  8. <! -- Database type, all letters in uppercase -->
  9. <DBType> KINGBASE </DBType>
  10. <! -- Database encoding method -->
  11. <DBEncode> GBK </DBEncode>
  12. <! -- Whether to perform SQL statement transcoding -->
  13. <SQLDecode> false </SQLDecode>
  14. <! -- Whether it is the default data source -->
  15. <Default> false </Default>
  16. </DataSource>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.