Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 8 JDBC Palette : JDBC Connection

JDBC Connection
Shared Configuration
The JDBC Connection resource describes a JDBC connection. JDBC connections are used when specifying activities from the JDBC palette.
Configuration
The Configuration tab has the following fields.
See Database Drivers for more information about database drivers.
The URL to use to connect to the database. A template of the URL is supplied for the selected JDBC driver. You must supply the portions of the URL that are in angle brackets (<>). For example, if you select the tibcosoftwareinc.jdbc.oracle.OracleDriver, the following appears in the Database URL field:
See Connection Pooling for more information about this field.
You can also set this timeout with the Config.JDBC.Connection.SetLoginTimeout custom engine property. The value of the property in the configuration file overrides the value of this field. See TIBCO ActiveMatrix BusinessWorks Administration for more information about setting custom engine properties.
This field only appears when the Use Shared JNDI Configuration field is unchecked. The initial context factory class for accessing JNDI. (javax.naming.Context.INITIAL_CONTEXT_
FACTORY
). You can choose from the drop down list of supported classes, or you can type in a different InitialContextFactory class name.
Note: TIBCO ActiveMatrix BusinessWorks attempts to find the class. However, you may need to add the Java file supplied by your JNDI service provider to the CLASSPATH environment variable to use JNDI.
This field only appears when the Use Shared JNDI Configuration field is unchecked. This is the URL to the JNDI service provider (javax.naming.Context.PROVIDER_URL). An example URL is provided when one of the supported JNDI context factory classes is selected.
This field only appears when the Use Shared JNDI Configuration field is unchecked. Specify the user name to use when logging into the JNDI server (javax.naming.Context.SECURITY_
PRINCIPAL
). If the JNDI provider does not require access control, this field can be empty.
This field only appears when the Use Shared JNDI Configuration field is unchecked. Specify the password for logging into the JNDI server (javax.naming.Context.SECURITY_
CREDENTIALS
). If the JNDI provider does not require access control, this field can be empty.
Note: TIBCO ActiveMatrix BusinessWorks attempts to find the class. However, you may need to add the location of the class to the CLASSPATH environment variable.
The URL to use to connect to the database. A template of the URL is supplied for the selected XA DataSource class. You must supply the portions of the URL that are in angle brackets (<>). For example, if you select the tibcosoftwareinc.jdbcx.oracle.OracleDataSource, the following appears in the Database URL field:
See Connection Pooling for more information about this field.
Database Drivers
The following drivers are supported, but you must obtain, install, and configure these from the appropriate vendor:
The following drivers are JDBC 2.0-compliant and should work correctly, but they are not officially supported with BusinessWorks. You must obtain, install, and configure the driver from the appropriate vendor:
You can download, install, and use other JDBC drivers, but TIBCO does not guarantee the drivers will function properly with TIBCO ActiveMatrix BusinessWorks. To use an unsupported driver, perform the following:
1.
2.
See TIBCO ActiveMatrix BusinessWorks Release Notes for more information on the supported and tested versions of databases and database drivers.
Connection Pooling
TIBCO ActiveMatrix BusinessWorks creates a pool of JDBC connections for every JDBC Connection shared resource that uses the JDBC connection type. The maximum size of this pool is specified by the Maximum Connections configuration field.
Activities that use this JDBC Connection resource are given a connection from the pool. Once the maximum number of connections is reached, activities requesting a connection cannot proceed. Once a connection is freed by an activity, the connection is returned to the pool.
Connections that are left open will eventually time out and be closed. These connections can be reopened at a later time, until the maximum number of connections specified in this field is reached. If you want to configure a timeout value for these connections, you can set the Engine.DBConnection.idleTimeout property. See TIBCO ActiveMatrix BusinessWorks Process Design for more information.
If an activity detects a connection in the pool is invalid (for example, the database is restarted), the activity that uses the JDBC connection resource attempts to reestablish the connection.
All activities that are part of the same transaction will use the same connection in the connection pool. The first activity in a transaction attempts to reestablish an invalid connection. If a connection becomes invalid during a transaction, the transaction is rolled back and must be retried, if necessary.
Test Connection Button
The Test Connection button allows you to test that the specified configuration fields result in a valid connection to a database.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved