Configuring BWAgent for Microsoft SQL Server and TIBCO FTL®
The BWAgent can be configured to use Microsoft SQL database with TIBCO FTL for transport.
Note: Use of TIBCO FTL with
ActiveMatrix BusinessWorks for configuring BWAgent and for configuring group provider for engine does not require TIBCO FTL licenses.
Note: The database name must be unique per agent network if multiple networks share the same physical database. BWAgent and BWEngine support sharing the same database, users, and schemas.
Before you begin
- Install and configure TIBCO FTL on the same machine that you have installed
ActiveMatrix BusinessWorks 6.x on. For more information, see the "Setting Up TIBCO FTL® for BWAgent Transport" topic in the
TIBCO ActiveMatrix BusinessWorks™ Installation guide.
Important: For the version of TIBCO FTL that is supported with the version of ActiveMatrix BusinessWorks 6.x, see the ActiveMatrix BusinessWorks readme.
- Install Microsoft SQL server. The Microsoft SQL driver is available by default.
After installing Microsoft SQL Server, create a database bwadmindb and grant privileges to the default database owner root as described in the following steps:
- Procedure
- Open Microsoft SQL Server Management Studio.
- From the Object Explorer pane, right-click to create the database bwadmindb.
- Right-click .
- Make the following configurations from the Login-New window:
- Type bwuser in the Login name field.
- Select SQL Server Authentication.
- Optional. Unselect Enforce password policy, Enforce password expiration, or User must change password at next login.
- In the Default database field, select bwadmindb.
- From the Select a page pane, on the left side of the Login - New window, click the Server Roles tab.
- To configure the BWAgent with MS SQL Server, set the values for Minimum Server Role and Database Role required for a user, for a particular database. In MS SQL Server Management Server, navigate to . Right-click . The minimum server role required for a particular user is public. Under User Mapping, the minimum database role membership for the selected database for a user mapped to the login should be one of the following two combinations: public and db_owner OR public, db_datawriter, db_datareader, and db_ddladmin.
- Click OK.
- Stop the BWAgent if it is running.
- Open the
bwagent_ftl.jsonfile inBW_HOME\config(Windows) or${BW_HOME}/config(Unix). - Update the following properties for your environment:
Property Name Microsoft SQL Value dbtypesqlserverdbdrivercom.microsoft.sqlserver.jdbc.SQLServerDriverdbconnectionurljdbc:sqlserver://localhost:1433;databaseName=bwadmindbdbuserbwuserdbpasswordbwuser - Run the BWAdmin
configcommand with the-cfoption push the changes from the JSON file to thebwagent.inifile.BW_HOME\bin>bwadmin config -cf ../config/bwagent_ftl.json agent - Restart the BWAgent.