Select "Database" from the "Environment" menu.
You can select one from the following databases.(You can not select multiple databases.)
Available database versions are "Environment> Production operation serverPlease refer to the page of.
Specify the URL to connect to the relational database. The URL format differs depending on the selected relational database. For details of the format, see "Support> Database Utilization Guide> Connection Procedure> Setting up the database in WagbyDesignerPlease read.
Specify the user name prepared on the relational database side. Please create a user in advance on the database side.
Specify the password corresponding to the user name prepared on the relational database to be used. Please set the user's password beforehand on the database side.
You can specify the character code of the external database.The standard is UTF-8.
This value is free input form.Please post the specified character code when creating the external database to use.
Wagby is standard, and it sets up the delimiter of the identifier in the SQL sentence.
Therefore, when using the table created by Wagby (using an external system etc.) using SQL statements, it is necessary to give a delimiter to the table name and column name.For example, it becomes as follows.
You can change this setting to "Do not specify delimiter".
In this case, for model ID and model item IDUnavailable patterns are generatedWe need to pay particular attention to it. For details, refer to "Support - Database usage guide - [Technical data] Identifier delimiter in SQL statementPlease read.
When restarting the external database used by Wagby, you also need to restart the application (wagbyapp) built with Wagby.
When this setting is enabled, connection confirmation processing will be performed every time it queries the database.Restarting the application is unnecessary.
Sets the maximum number of virtual "connections (connections)" used for communication between the application and the database. This connection is reused by multiple users (Web browsers).The initial value is "24".Please specify a number greater than 1.
For example, when Wagby's simultaneous authentication connection number is 100, up to 100 users log on.Here, if the maximum number of connections is 24, 100 users will use 24 virtual lines.Adjusting this number according to the number of simultaneous authentication connections of Wagby improves performance.
If you specify -1 for this value, it becomes "unlimited".If you change this number, you may need to change the setting on the database side (specification of the maximum number of connections accepted) accordingly.For details, please read the external database manual to be used.
Specify the maximum number of connections that are in an unused state.When 0 is specified, it becomes "unlimited".The initial value is "8".
Specify the wait time before the next user can use it after the connection is used by a certain user.If you specify "-1" it will be unlimited (waiting forever).The unit is millisecond.The initial value is "2000 milliseconds".
If you want to change the setting of the production machine that is already in operation, please edit the setting file referring to the following explanation.
|Configuration||Corresponding configuration file||Setting location|
|Connection URL||wagbyapp\conf\server.xml||Resource/@ name = url attribute of "jdbc/jfc" element|
|User name||wagbyapp\conf\server.xml||Resource/@ name = "username attribute of" jdbc/jfc "element|
|password||wagbyapp\conf\server.xml||Resource/@ name = "password attribute of" jdbc/jfc "element|
|Maximum number of connections||wagbyapp\conf\server.xml||Resource/@ name = maxActive attribute of "jdbc/jfc" element|
|Maximum number of unused connections||wagbyapp\conf\server.xml||The maxIdle attribute of the Resource/@ name = "jdbc/jfc" element|
|Maximum wait time||wagbyapp\conf\server.xml||Resource/@ name = "maxWait" attribute of "jdbc/jfc" element|
When using external database, please read notes on usage in each database.
For example, in the case of DB2, you may need to do additional work such as changing the table space/page size or individually defining the type of each model item.
"Database environment> maximum number of connections" is managed using technology called connection pooling. Standards uses Commons DBCP.
For more detailed information, refer to "Database usage guide> Connection PoolingPlease read.