TIBCO BusinessConnect Scripting Deployment User S Guide
TIBCO BusinessConnect Scripting Deployment User S Guide
TIBCO BusinessConnect Scripting Deployment User S Guide
Scripting Deployment
User’s Guide
Software Release 6.2
August 2014
Two-Second Advantage®
Important Information
SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED
OR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (OR PROVIDE LIMITED
ADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THE EMBEDDED OR BUNDLED
SOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANY OTHER TIBCO SOFTWARE OR FOR
ANY OTHER PURPOSE.
USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS AND CONDITIONS OF A
LICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTED SOFTWARE LICENSE
AGREEMENT, OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THE CLICKWRAP END USER
LICENSE AGREEMENT WHICH IS DISPLAYED DURING DOWNLOAD OR INSTALLATION OF THE
SOFTWARE (AND WHICH IS DUPLICATED IN THE LICENSE FILE) OR IF THERE IS NO SUCH SOFTWARE
LICENSE AGREEMENT OR CLICKWRAP END USER LICENSE AGREEMENT, THE LICENSE(S) LOCATED
IN THE “LICENSE” FILE(S) OF THE SOFTWARE. USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS
AND CONDITIONS, AND YOUR USE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN
AGREEMENT TO BE BOUND BY THE SAME.
This document contains confidential information that is subject to U.S. and international copyright laws and
treaties. No part of this document may be reproduced in any form without the written authorization of TIBCO
Software Inc.
TIBCO, Two-Second Advantage, TIBCO Hawk, TIBCO Rendezvous, TIBCO Runtime Agent, TIBCO
ActiveMatrix BusinessWorks, TIBCO Administrator, and TIBCO Designer are either registered trademarks or
trademarks of TIBCO Software Inc. in the United States and/or other countries.
Enterprise Java Beans (EJB), Java Platform Enterprise Edition (Java EE), Java 2 Platform Enterprise Edition
(J2EE), and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle Corporation
in the U.S. and other countries.
All other product and company names and marks mentioned in this document are the property of their
respective owners and are mentioned for identification purposes only.
THIS SOFTWARE MAY BE AVAILABLE ON MULTIPLE OPERATING SYSTEMS. HOWEVER, NOT ALL
OPERATING SYSTEM PLATFORMS FOR A SPECIFIC SOFTWARE VERSION ARE RELEASED AT THE SAME
TIME. SEE THE README FILE FOR THE AVAILABILITY OF THIS SOFTWARE VERSION ON A SPECIFIC
OPERATING SYSTEM PLATFORM.
THIS DOCUMENT IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS.
CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE
INCORPORATED IN NEW EDITIONS OF THIS DOCUMENT. TIBCO SOFTWARE INC. MAY MAKE
IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN
THIS DOCUMENT AT ANY TIME.
THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY OR
INDIRECTLY, BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE, INCLUDING
BUT NOT LIMITED TO ANY RELEASE NOTES AND "READ ME" FILES.
Copyright © 1999-2014 TIBCO Software Inc. ALL RIGHTS RESERVED.
TIBCO Software Inc. Confidential Information
| iii
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
TIBCO BusinessConnect Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
Other TIBCO Product Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii
Connecting with TIBCO Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
How to Join TIBCOmmunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
How to Access TIBCO Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
How to Contact TIBCO Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Preface
Topics
Related Documentation
interface (GUI) for defining business processes and an engine that executes
the process.
• TIBCO Designer™: This graphical user interface is used for designing and
creating integration project configurations and building an Enterprise Archive
(EAR) for the project. The EAR can then be used by TIBCO Administrator for
deploying and running the application.
• TIBCO Runtime Agent™: This software suite is a prerequisite for other TIBCO
software products. In addition to TIBCO Runtime Agent components, the
software suite includes the third-party libraries used by other TIBCO products
such as TIBCO Designer, Java Runtime Environment (JRE), TIBCO Hawk®,
and TIBCO Rendezvous®.
• TIBCO Rendezvous®: This software enables programs running on many
different kinds of computers on a network to communicate seamlessly. It
includes two main components: the Rendezvous programming language
interface (API) in several languages, and the Rendezvous daemon.
• TIBCO Enterprise Message Service™: This software provides a message
service that enables integration of applications within an enterprise based on
the Java Message Service (JMS) specifications.
• TIBCO BusinessEvents®: This software helps companies identify and quantify
the impact of events; it notifies people and systems about meaningful events
so processes can be adapted on-the-fly. TIBCO BusinessEvents uses a unique
model-driven approach to collect, filter, and correlate events and deliver
real-time operational insight.
• TIBCO Hawk®: This software is a tool for monitoring and managing
distributed applications and operating systems. The software is designed
specifically for monitoring distributed systems, so there is no centralized
console or frequent polling across the network.
• tibbr®, tibbr Service, tibbr Community, and tibbr Community Service: This
software is the first workplace communication tool with which you can follow
subjects that relate to your work and interests besides following people as you
do in typical social networking applications. That way, you have much more
flexibility in obtaining the right information at the right time in the right
context. In fact, the information will find you.
• TIBCO BusinessConnect™ Palette: This software is about the resources
available in the TIBCO BusinessConnect Palette for TIBCO ActiveMatrix
BusinessWorks.
Typographical Conventions
Convention Use
ENV_NAME TIBCO products are installed into an installation environment. A product
installed into an installation environment does not access components in other
TIBCO_HOME
installation environments. Incompatible products and multiple instances of the
BC_HOME same product must be installed into different installation environments.
An installation environment consists of the following properties:
• Name Identifies the installation environment. This name is referenced in
documentation as ENV_NAME. On Microsoft Windows, the name is
appended to the name of Windows services created by the installer and is a
component of the path to the product shortcut in the Windows Start > All
Programs menu.
• Path The folder into which the product is installed. This folder is referenced
in documentation as TIBCO_HOME.
TIBCO BusinessConnect installs into a directory within a TIBCO_HOME. This
directory is referenced in documentation as BC_HOME. The default value of
BC_HOME depends on the operating system. For example, on Windows systems,
the default value is C:\tibco\bc\version.
code font Code font identifies commands, code examples, filenames, pathnames, and
output displayed in a command window. For example:
Use MyCommand to start the foo process.
Convention Use
italic font Italic font is used in the following ways:
• To indicate a document title. For example: See TIBCO BusinessConnect
Concepts.
• To introduce new terms. For example: A portal page may contain several
portlets. Portlets are mini-applications that run in a portal.
• To indicate a variable in a command or code syntax that you must replace.
For example: MyCommand PathName
Key Key names separated by a plus sign indicate keys pressed simultaneously. For
combinations example: Ctrl+C.
Key names separated by a comma and space indicate keys pressed one after the
other. For example: Esc, Ctrl+Q.
The note icon indicates information that is of special interest or importance, for
example, an additional action required only in certain circumstances.
The tip icon indicates an idea that could be useful, for example, a way to apply
the information provided in the current section to achieve a specific result.
The warning icon indicates the potential for a damaging situation, for example,
data loss or corruption if certain steps are taken or not taken.
Convention Use
[ ] An optional item in a command or code syntax.
For example:
MyCommand [optional_parameter] required_parameter
| A logical OR that separates multiple items of which only one may be chosen.
For example, you can select only one of the following parameters:
MyCommand para1 | param2 | param3
Convention Use
{ } A logical group of items in a command. Other syntax notations may appear
within each logical group.
For example, the following command requires two parameters, which can be
either the pair param1 and param2, or the pair param3 and param4.
MyCommand {param1 param2} | {param3 param4}
In the next example, the command requires two parameters. The first parameter
can be either param1 or param2 and the second can be either param3 or param4:
MyCommand {param1 | param2} {param3 | param4}
In the next example, the command can accept either two or three parameters.
The first parameter must be param1. You can optionally include param2 as the
second parameter. And the last parameter is either param3 or param4.
MyCommand param1 [param2] {param3 | param4}
Topics
• Overview, page 2
• TIBCO BusinessConnect Scripting Deployment Architecture, page 3
• TIBCO BusinessConnect Scripting Deployment’s Tasks, page 6
• Online Help, page 9
Overview
BusinessConnect BusinessConnect
Configuring BC
Application and Create Installation
Deployments
Activate Protocols
Export Configuration
Configuration Repository
Repository CSX Export
Import Configuration
Repository
Export
Deployment Deployment
Configuration Configuration Create Application
XML
Import Deployment
Administrator Logoff Configuration
Service
Instance Optional
Bindings
Configure FT Cluster
Mappings
Start Application
For more details, see Task A: Preparing for Deployment on page 13.
Argument
The connection parameters are picked up by default from the file
comonConfig.properties, a regular Java properties file located in the current
working directory BC_HOME/tools/bcappmanage. The location of this file can
also be specified with the argument -configRepoURL.
• -configRepoURL The URL of the configuration repository. This argument
follows the syntax file://file path.
For more details, see Task B: Deploying and Managing TIBCO BusinessConnect
Applications.
This task uses the service instance binding map file to bind service instances
dynamically as application service containers for machines managed by a TIBCO
Administrator domain at deployment time. Optionally, dynamic assignments of
the fault tolerant groups and the public Smart Routing clusters are allowed using
the fault tolerant cluster map file.
Deployment tasks require that the administrative domain and authentication
credentials are specified. In addition to the listed commands, the command line
arguments are also needed. See Deployment Arguments.
Deployment Arguments
The mandatory arguments (parameters) for all deployment tasks are as follows:
• -user Administrative domain user name
• -pw Administrative domain password for the machine
• -cred Credentials file. See Credentials File.
• -domain Administrative domain
These arguments are not contained in the file commonConfig.properties.
Online Help
bcappmanage
BCAppManage Usage:
This chapter shows the sequence for configuring and deploying TIBCO
BusinessConnect application using TIBCO BusinessConnect.
Topics
Starting bcappmanage
bcappmanage
See the section Online Help for information about using online help.
Once the TIBCO BusinessConnect application has been configured and deployed,
you can quickly export the existing configuration and deployment repositories.
After these preparation tasks are done, continue by re-installing the application,
importing the previously exported configuration, creating tables (if needed), and
deploying and managing the application using the command line interface.
Users who are planning to use the Oracle OCI drivers must specify the Oracle
Client Library path in the environment variable
tibco.env.ORACLE_CLIENT_PATH of the file bcappmanage.tra located under
BC_HOME/tools/bcappmanage.
The value should point to the Oracle native client libraries directory.
• On Windows, this is typically ORACLE_CLIENT_HOME/BIN directory; for
example C:\oracle\product\10.2.0\client\BIN.
• On UNIX systems, this is typically the ORACLE_CLIENT_HOME/lib or
ORACLE_CLIENT_HOME/lib32 directory.
The generated XML file will be used during the task invoked by the command
-importDeployConfig. Repeat the command -exportDeployConfig if any
of the configured deployment parameters have changed.
The complete command reference is available in -exportDeployConfig.
2. Export Configuration Repository
bcappmanage -exportConfigRepo
This task is used for generating CSX configuration export files from the
TIBCO BusinessConnect configuration repository. It supports four main
categories: participants, operations, certificates, and entire installation.
The complete command reference is available in -exportConfigRepo.
Same as the Create Installation task in the TIBCO BusinessConnect GUI, this
task creates the TIBCO BusinessConnect installation. The complete command
reference is available in -createInstallation.
2. Activate Protocol
bcappmanage -activateProtocol
This task allows activation in one pass for all available protocol plugins
installed on the machine where bcappmanage is running. The complete
command reference is available in -activateProtocol.
3. Create Tables (optional)
bcappmanage -createTables
This task is optional and is not needed when the audit, non-repudiation, and
runtime data will be stored in the database account that is the same as the
account of the configuration store. The complete command reference is
available in -createTables.
4. Import Configuration Repository
bcappmanage -importConfigRepo
in their key. To learn more about machine bindings, see Binding Maps. The
complete command reference is available in -importDeployConfig.
7. Configure FT Cluster Map (optional)
bcappmanage -configFTClusterMap
This task can be used for starting the TIBCO BusinessConnect engines
deployed in scripted mode. The options define whether an individual engine
or all engines will be started, and also whether these engines are on the
Interior server. The complete command reference is available in -startApp.
• -listGatewayToken.
This chapter explains the parameters that are contained in the file
commonConfig.properties.
Topics
• Overview, page 18
• JDBC Maps, page 19
• Binding Maps, page 20
• Cluster/FT Map, page 24
Overview
When you install TIBCO BusinessConnect, the installation will create the file
commonConfig.properties in the directory BC_HOME/tools/bcappmanage.
This file has not been configured for your site and the configuration values such
as host names and passwords are missing. If you try to deploy a TIBCO
BusinessConnect application with the initially generated configuration properties
file, you will get error prompts asking you to enter the missing values.
To enter the values (parameters or keys) in the file commonConfig.properties,
either use the values that were available for the TIBCO BusinessConnect
application configured and deployed using the TIBCO BusinessConnect GUI, or
supply new values.
The values that you need to enter belong to three categories and have to be
mapped to the installed parameters as explained in the following sections:
• JDBC Maps
• Binding Maps
• Cluster/FT Map
A sample file commonConfig.properties that contains the values needed for
deployment is shown in Appendix B, Configuration Properties File.
JDBC Maps
The section JDBC Maps of the file commonConfig.properties contains the JDBC
connection parameters needed for configuration of repositories and of the audit,
non-repudiation, and runtime tables.
• bc.repo.db.driver = value
• bc.repo.db.url = value
• bc.repo.db.userID = value
This parameter is optional if the command -configRepoUser is used.
• bc.repo.db.password = value
This parameter is optional if the command -configRepoPw is used .
• bc.repo.db.connectionPool.size = value
Binding Maps
[interior]
List of hosts where the Interior servers need to be deployed. Repeat the same
host for multiple service instances per host.
Examples:
bc.appmanage.interior.hosts = myHostA, myHostA, myHostA
For more details about server settings parameters, see TIBCO Administrator User's
Guide, Setting Deployment Options, section Server Settings Tab.
[interior]
The parameter <host> is the name of the machine binding and <index> refers
to the instance on the same host. If there is only one instance on a machine, an
<index> of 1 is required.
startonboot
Boolean value which denotes Start when the machine on which the service
instance is installed restarts.
enableverbose
Examples:
bc.appmanage.interior.myHostA.1.minHeap=512 (Mbytes)
bc.appmanage.interior.myHostA.1.maxHeap=1024 (Mbytes)
bc.appmanage.interior.myHostA.2.minHeap=512 (Mbytes)
bc.appmanage.interior.myHostA.2.maxHeap=1024 (Mbytes)
bc.appmanage.interior.myHostA.2.startonboot=true
[interior]
A numerical value that denotes the Interior server instances occurring within
a host.
[automatic | manual]
Example:
bc.appmanage.interior.myHostX.1.ntservice =
automatic.myDomain\\myUserID.myPassword
For more details about server fault tolerance parameters, see TIBCO
BusinessConnect Interior Server Administration, Fault Tolerance Tab.
service
Daemon host
daemonPort
Daemon port
hearbeatInterval
This property has can be updated using the TIBCO BusinessConnect Scripting
Deployment.
<host>
A numerical value that denotes the Interior server instances occurring within
a host.
Examples:
The Oracle client path for configuring interior engines with an OCI driver can be
set as shown below:
bc.appmanage.interior.host1.1.oracleclientpath=C:/Oracle1
bc.appmanage.interior.host2.1.oracleclientpath=/local/Oracle
Cluster/FT Map
<groupname>
Examples:
bc.appmanage.ft.group.myFTGroupA = myHostX.1, myHostY.2
bc.appmanage.ft.group.myFTGroupB = myHostY.1, myHostX.2
bc.appmanage.ft.group.myDefaultFT = myHostZ.1
<queuename>
Examples:
bc.appmanage.cluster.queue.myLargeEmailRule = myFTGroupA
bc.appmanage.cluster.queue.myLargeHTTPRequestRule = myFTGroupB
bc.appmanage.cluster.queue.default = myDefaultFT
This appendix lists all configuration and deployment commands that you can
invoke using TIBCO BusinessConnect.
Topics
• -activateProtocol, page 28
• -createApp, page 29
• -createGatewayToken, page 30
• -assignService, page 32
• -startTransports, page 34
• -stopTransports, page 35
• -createInstallation, page 37
• -createTables, page 39
• -configFTClusterMap, page 41
• -deleteApp, page 42
• -deployApp, page 43
• -exportConfigRepo, page 44
• -exportDeployConfig, page 47
• -importConfigRepo, page 48
• -importDeployConfig, page 50
• -killApp, page 52
• -listGatewayToken, page 53
• -startApp, page 54
• -stopApp, page 55
• -undeployApp, page 56
-activateProtocol
Description This command activates the specified TIBCO BusinessConnect protocol, which
involves the creation of database tables and other protocol specific initialization
steps. If ALL is specified, all installed protocols will be activated. In case of the
base EDI protocol, it checks whether it is enabled before the HIPAA protocol can
be activated. This task is equivalent to the activate protocol task under
BusinessConnect > Manage Installation in the TIBCO BusinessConnect GUI.
(default=file://./commonConfig.properties)
{ -configRepoUser <user> -configRepoPw <password> }
Example:
• Activates all installed protocols.
bcappmanage -activateProtocol -protocol ALL -configRepoURL
file://c:/temp/config.properties
Dependencies -createInstallation
-createApp
Description This task is equivalent to the step Create Deployment Configuration invoked
from the TIBCO BusinessConnect GUI, which creates the TIBCO BusinessConnect
application that can be managed from TIBCO Administrator.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Example
• Create the Single Server deployment configuration for the administrative
domain default-lt using the configuration connection parameters from a
Java properties file other than default.
bcappmanage -createApp -domain default-lt -cred
c:/temp/cred.properties -configRepoURL
file://c:/temp/config.properties
Dependencies -importConfigRepo
-createGatewayToken
Description This command is used to create a Gateway Server token. The Gateway Server
container reads a Gateway Server token (including the RV for DMZ/MSH
communication) to start establishing a secure trusted connection with the Interior
Server.
The Gateway Server token allows for a secure configuration of a management
port and the DDTP port. It defines the communication of the Gateway Server: the
default settings given in General Settings are overwritten by the data in the
Gateway Server token. It also defines policy control and validates policies upon
startup.
Options - configRepoURL
Optional data port used for streaming data transfer, defaults to 12000.
- publicBinding
Optional public binding address set in the token for transport listeners.
- systemBinding
Optional system binding address set in the token for internal management
and streaming data transfer.
- rvNetwork
Optional RV Network set in the token for communication with the Interior
server. It defaults to the value specified in deployment Intercomponent
Communication > Gateway Server Settings.
- rvService
Optional RV Service set in the token for communication with the Interior
server. It defaults to the value specified in deployment Intercomponent
Communication > Gateway Server Settings.
- rvDaemon
Optional RV Daemon set in the token for communication with the Interior
server. It defaults to the value specified in deployment Intercomponent
Communication > Gateway Server Settings.
-exportPath
Example:
Create a Gateway Token for the TIBCO BusinessConnect configuration
repository URL jdbc:oracle:thin:@host:1521:orcl and the user Joe. The
password for this URL and user is changeme, the token name is token1, and
the rest of the data is also entered for the management port (13000), data port
(14000) and for the export path of the token (c:\temp\token1.dat).
bcappmanage -createGatewayToken -configRepoURL
jdbc:oracle:thin:@10.100.100.10:1521:orcl -configRepoUser joe
-configRepoPw changeme -name token1 -managementPort 13000
-dataPort 14000 -exportPath c:/temp/token1.dat
-assignService
Description This command is used to delete the predefined service or to assign a service to a
Gateway Instance. This task is equivalent to perform under BusinessConnect >
Gateway > Gateway Instances in TIBCO Administrator.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
(default = file://./commonConfig.properties)
{ -configRepoUser <user> -configRepoPw <password> }
Example:
The following examples are listed when using the default settings.
• Specify credential file for administrative domain authorization and a file URL
for the configuration repository connection properties.
-configRepoURL jdbc:oracle:thin://host:1521;SID=bcdb
-configRepoUser joe -configRepoPw changeme
-startTransports
Description This command is used to start all available transports for a Gateway Server. This
task is equivalent to perform under BusinessConnect > Gateway > Gateway
Instances in TIBCO Administrator.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
(default = file://./commonConfig.properties)
{ -configRepoUser <user> -configRepoPw <password> }
Example:
• Specify credential file for administrative domain authorization and a file URL
for the configuration repository connection properties.
bcappmanage -startTransports -domain default-lt -cred
c:/temp/cred.properties -configRepoURL
file://c:/temp/config.properties
-stopTransports
Description This command is used to stop all available transports for a Gateway Server. This
task is equivalent to perform under BusinessConnect > Gateway > Gateway
Instances in TIBCO Administrator.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
(default = file://./commonConfig.properties)
{ -configRepoUser <user> -configRepoPw <password> }
Example:
• Specify credential file for administrative domain authorization and a file URL
for the configuration repository connection properties.
bcappmanage -stopTransports -domain default-lt -cred
c:/temp/cred.properties -configRepoURL
file://c:/temp/config.properties
-configRepoURL jdbc:oracle:thin://host:1521;SID=bcdb
-configRepoUser joe -configRepoPw changeme
-createInstallation
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Examples
• Specifying credential file for admin domain authorization and a file URL for
the configuration repository connection properties.
bcappmanage -createInstallation -domain default-lt -cred
c:/temp/cred.properties -configRepoURL
file://c:/temp/config.properties
-createTables
Description This command is used to create audit, runtime, and non-repudiation schemas in
database accounts that are different from the ones in the TIBCO BusinessConnect
configuration store. This is accomplished by specifying the category
(audit/non-repudiation/runtime) as well as the JDBC connection parameters for
TIBCO BusinessConnect configuration store.
This task is optional and is not needed when the audit, non-repudiation, and
runtime data will be stored in the database account that is the same as the account
of the configuration store.
Optional flag to enable overwriting if the database account has existing audit,
non-repudiation, or runtime data. By default existing data is not overwritten.
Examples
• Recreates and drops audit tables by specifying the audit connect entries via a
properties file other than default.
bcappmanage -createTables -category audit -configRepoURL
file://c:/temp/config.properties -jdbcURL
file://c:/temp/audit.properties
Dependencies -createInstallation
-configFTClusterMap
Description This task is optional and is used for changing the default fault-tolerant
assignments for interior engines, as well as for mapping the Public Smart Routing
cluster queues to fault-tolerant groups.
Clusters for fault-tolerant groups and for Smart Routing are mapped as follows:
• Fault-tolerant groups to machine bindings
• Public Smart Routing cluster queues to fault-tolerant groups
The mappings are specified via a Java properties file or a
commonConfig.properties file located under BC_HOME/tools/bcappmanage.
The command configFTClusterMap can work only with the service instances
bindings that were previously configured using the command
-importDeployConfig. See step 6.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
location to properties file hosting fault tolerance and smart routing cluster
map configuration (default=./commonConfig.properties)
Example
• Perform cluster mapping using a Java properties file
C:/temp/cluster.properties other than default.
Dependencies -importDeployConfig
-deleteApp
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Example
• Deletes the TIBCO BusinessConnect application using the credential file
C:/temp/cred.properties.
-deployApp
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Examples
• Deploys TIBCO BusinessConnect application service without starting the
service instances.
bcappmanage -deployApp -domain default-lt -cred
c:/temp/cred.properties -nostart
Dependencies -importDeployConfig
-configureFTClusterMap (optional)
-exportConfigRepo
Description The command -exportConfigRepo is used for exporting CSX component files
from the TIBCO BusinessConnect configuration store. It supports four main
categories: participants, operations, certificates, and entire installation. It typically
exports all operations or participants, but it can be used also to export only
selected ones. For example, if you need to export a participant Company2 into
production environment, this command coupled with -importConfigRepo will
allow you to add the participant without making any changes to the GUI.
When exporting the configuration repository, target files are saved in the CSX
format, and configuration repositories are created for the following:
• Participants and agreements
• Operations and bindings
• Key and certificate credentials
• System and server settings
Exporting is performed as follows:
• For participants, operations, and certificates: a differential export is possible.
• For participants and certificates: a comma-separated list of entities to be
exported can be specified.
• For operations: the XPath of the operation tree to be exported can be specified
in addition to the protocol standard, which is mandatory for this category.
• In all these cases the exported CSX file can be optionally protected with a
password.
• For certificate export: each exported certificate is written out as a file
<cert-alias>.cert in the folder specified by the -p7b argument.
• The default export directory is the p7b_certs folder in the current working
directory.
Examples
• Exporting two participants
bcappmanage -exportConfigRepo -category participants -alias
tantony-lt,tantony-dt -configRepoURL
file://c:/temp/config.properties -csx c:/temp/participants-1.csx
• Exporting certificate with alias cert1 for partner tantony-dt into folder
c:/temp (as file cert1.cert)
-exportDeployConfig
Description Exports the deployment configuration into an XML file for future scripting
deployment. Any future import of this configuration will contain all public and
private process communication parameters specific to TIBCO BusinessConnect
application. By default, the output deployment configuration XML file is set as
BC-<domain>-deploy-config.xml and resides in the directory
BC_HOME/tools/bcappmanage/domain/<domain>, if not specified otherwise.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Credentials File
To read more about the credentials file, see TIBCO Runtime Agent Scripting
Deployment User’s Guide, section Working with Passwords.
Example
• Exports the deployment configuration for the administration domain
default-dt and the credential file located in C:\temp\cred.properties,
and saves it to the file C:\temp\config.xml.
bcappmanage -exportDeployConfig -domain default-lt -cred
c:/temp/cred.properties -out c:/temp/config.xml
-importConfigRepo
Description This command is used for importing CSX component files into the TIBCO
BusinessConnect configuration store by specifying the location of the CSX file and
the password, in case the file was password protected. It imports the file that was
previously exported using step 2.
Only the TIBCO BusinessConnect Super User can perform this task. To learn more
about TIBCO BusinessConnect Super Users and how they are created, see TIBCO
BusinessConnect Concepts, TIBCO BusinessConnect Super User, and TIBCO
BusinessConnect Trading Partner Administration Guide, Managing Groups with
TIBCO BusinessConnect User Management.
Only the CSX files belonging to TIBCO BusinessConnect 5.3.3 and later are
supported.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Example
• Import the configuration repository that was previously exported into the file
C:\tempmisc\operations-x12-test.csx.
Dependencies -createInstallation
-exportConfigRepo
-importDeployConfig
The task -importDeployConfig allows only import of the same type of XML
deployment configuration; for example, the XML configuration exported from a
Single Server deployment mode can be only imported on a Single Server
deployment configuration.
Description This command is used for configuring the Interior server engine instances and for
specifying the attributes of the deployed engines, such as Java heap, stack size
settings, and NT service settings.
Input the bindings using the following:
• The Java properties file commonConfig.properties, whose location is a
command line argument for this task or BC_HOME/tools/bcappmanage
• Configuration file that was exported using the command
-exportDeployConfig.By default, the input XML file for the task
-importDeployConfig is set as BC-<domain>-deploy-config.xml, which
resides under BC_HOME/tools/bcappmanage/domain/<domain>
While exporting the deployment configuration, you do not need to specify any
machines names. Therefore, the step invoked by the command
-importDeployConfig is used to define to the exact machines that will be used
for the deployment and to configure their bindings. To learn more, see Binding
Maps.
Names of the Interior hosts must be specified exactly as they are shown on the
screen Resource Management > Machines in TIBCO Administrator. Same needs
to be ensured for all property settings that use the machine names in their key. See
Binding Maps for more information.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Example
• Import the deployment configuration for the administrative domain
default-lt from the file C:\temp\config.xml.
Dependencies -exportDeployConfig
-createApp
-killApp
The command killApp can work only with the service instances bindings that
were previously configured using the command -importDeployConfig. See
step 6.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Example
• Kills all engines.
bcappmanage -killApp -domain default-lt -cred
c:/temp/cred.properties
-listGatewayToken
Options -filename
Example
• List properties of the Gateway Token file token1.dat.
bcappmanage -listGatewayToken -fileName c:/temp/token1.dat
-startApp
The command startApp can work only with the service instances bindings that
were previously configured using the command -importDeployConfig. See
step 6.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Example:
• Start all engines
bcappmanage -startApp -domain default-lt -cred
c:/temp/cred.properties
-stopApp
The command stoppApp can work only with the service instances bindings that
were previously configured using the command -importDeployConfig. See
step 6.
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Example
• Stop all engines.
bcappmanage -stopApp -domain default-lt -cred
c:/temp/cred.properties
-undeployApp
Options -domain <domain name> [-user <domain user> -pw <domain password> |
-cred <domain cred_file>]
Example
• Undeploys the TIBCO BusinessConnect application using the credential file
C:/temp/cred.properties.
Topics
• commonConfig.properties, page 58
commonConfig.properties
Example 1 commonConfig.Properties
#
# Copyright (c) 2003-2011 TIBCO Software Inc.
# All Rights Reserved.
#
# This software is the confidential and proprietary information of
# TIBCO Software Inc.
#
#==========================================================
# *** Common variables ***
#==========================================================
#================================
# *** JDBC Maps ***
#
# Samples JDBC driver and URLs where <type> = <repo|audit|nr|runtime>:
#
# bc.<type>.db.driver = com.mysql.jdbc.Driver
# bc.<type>.db.url = jdbc:mysql://[host]:[port]/[database]
#
# bc.<type>.db.driver = oracle.jdbc.driver.OracleDriver [ deprecated by Oracle ]
# bc.<type>.db.driver = oracle.jdbc.OracleDriver [ new Driver class introduced by
Oracle from ojdbc5.jar ]
# bc.<type>.db.url = jdbc:oracle:thin:@[host]:[port]:[sid]
#
#
#
# Native Vendor Driver support
# ============================
#
# Oracle OCI
# ----------
# bc.<type>.db.driver = oracle.jdbc.OracleDriver
# bc.<type>.db.url = jdbc:oracle:oci:@<Service Name>
#
# Microsoft SQL Server driver
# ---------------------------
# bc.<type>.db.driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
# bc.<type>.db.url = jdbc:sqlserver://<host>:<port#>;databaseName=<databaseName>
#
# DB2 Universal Driver
# ---------------------
# NR connection parameters
#
bc.nr.db.driver=com.mysql.jdbc.Driver
bc.nr.db.url=jdbc:mysql://axw3k1:3306/john
bc.nr.db.userID=john1
bc.nr.db.password=john1
bc.nr.db.connectionPool.size=
#
# Runtime connection parameters
#
bc.runtime.db.driver=com.mysql.jdbc.Driver
bc.runtime.db.url=jdbc:mysql://axw3k1:3306/john
bc.runtime.db.userID=john1
bc.runtime.db.password=john1
bc.runtime.db.connectionPool.size=
#================================
# Bindings Map
#================================
#
# List of hosts where interior servers need to be deployed. Repeat the host name for
multiple interior server
# instances on the same host. Ex,
# interior.hosts=host1,host2,host3,host1
#
bc.appmanage.interior.hosts=
# (Optional)
# The min, max heap sizes, thread stack size and classpath extensions for the
interior engines can be specified(in MBs) as shown below.
# The first token in the key is interior, the next token refers to the host
# name, the next token specifies the instance occurence within that host (for
interiors)and the last token specifies
# whether the value is min / max heap size, thread stack size or append/prepend
classpath.
# Since this is a java properties file, prepend/append classpaths should always use
'/' as the path separator.
# Ex,
#
# bc.appmanage.interior.host1.1.minHeap=500
# bc.appmanage.interior.host1.1.maxHeap=1000
# bc.appmanage.interior.host1.1.threadStack=512
# bc.appmanage.interior.host1.1.appendclasspath=c:/temp
# bc.appmanage.interior.host1.1.prependclasspath=c:/temp2
# bc.appmanage.interior.host1.2.minHeap=800
# bc.appmanage.interior.host1.2.maxHeap=1200
# bc.appmanage.interior.host1.2.threadStack=1024
# (Optional)
# The general settings for deployed engines can be set as shown below.
# The first token in the key is interior, the next token refers to the host
# name, the next token specifies the instance occurence within that host (for
interiors)and the last token specifies
# the specific attribute being set which is one among - startonboot, enableverbose,
maxlogfilecount & maxlogfilesize.
# Ex,
#
# bc.appmanage.interior.host1.1.startonboot=true
# bc.appmanage.interior.host1.1.enableverbose=true
# bc.appmanage.interior.host1.1.threadcount=14
# (Optional)
# The NT service settings for deployed engines can be set as shown below.
# The first token in the key is interior, the next token refers to the host
# name, the next token specifies the instance occurence within that host (for
interiors) and the last token identifes
# this key as defining the NT service setting. The value has three tokens of which
the first one indicates the
# service startup type which can be either 'manual' or 'automatic'. The second and
third tokens specify the user id
# and password for the service's logon account. Note that the userid should
mandatorily specify the domain. The double
# backslashes are required, slash being part of the properties file syntax. To run
the service under the default local
# system account, leave the userid and password empty.
#
# bc.appmanage.interior.host1.1.ntservice=automatic.domain\\joe.changeme
# bc.appmanage.interior.host1.2.ntservice=manual.domain\\joe.changeme
# (Optional)
# Interior Server Fault Tolerance Group Settings can be set as shown below.
#
# Note: The properties for heartbeatIntervals, activationInterval and
activationDelay are specified in seconds.
#
# bc.appmanage.ftGroupSettings.service=7505
# bc.appmanage.ftGroupSettings.network=
# bc.appmanage.ftGroupSettings.daemonHost=
# bc.appmanage.ftGroupSettings.daemonPort=7505
# bc.appmanage.ftGroupSettings.heartbeatInterval=5
# (Optional)
# The Oracle client path for configuring interior engines with OCI driver can be set
as shown below.
# bc.appmanage.interior.host1.1.oracleclientpath=<Oracle Home Path1>
# bc.appmanage.interior.host2.1.oracleclientpath=<Oracle Home Path2>
#================================
# Cluster/FT Map
#================================
#
# Mapping of FT groups to interior engine instances. Key is the group name and value
is a comma separated list of
# interior engine instances under that group with the syntax <host.index>. Repeat
the entry for multiple
# FT groups. Ex
# bc.appmanage.ft.group.FTG1=host1.1,host2.1
# bc.appmanage.ft.group.FTG2=host3.1, host1.2
#
bc.appmanage.ft.group.<groupname>=
# (Optional)
# Mapping of public smart routing cluster queues to FT groups. Key is the cluster
queue name name and value is a
# comma separated list of FT groups asigned to that cluser. Repeat the entry for
multiple cluster queues. Ex,
# bc.appmanage.cluster.queue.Q1=FTG1
# bc.appmanage.cluster.queue.Q2=FTG2
#
#bc.appmanage.cluster.queue.<queuename>=
#
# A comma separated list of FT groups assigned to the default (NO MATCHING RULES)
cluster queue.
#
bc.appmanage.cluster.queue.default=
Index
activate protocol 14
-activateProtocol 28
-assignService 32 E
audit, non-repudiation, and runtime connection
parameters 19 ENV_NAME viii
export configuration repository 13
export deployment configuration 13
-exportConfigRepo 44
B -exportDeployConfig 47
binding maps 20
D
L
-deleteApp 42
deploy application 15 -listGatewayToken 53
-deployApp 43
M U
machines to Interior Server bindings 20 -undeployApp 56
managing applications using bcappmanage 13
mapping fault-tolerant groups to service instances 24
mapping public Smart Routing clusters to fault-toler-
ant groups 24
O
online help 9
optional service instance JVM Min / Max Heap and
Thread Stack Size 20
optional service instance NT service startup
parameters 22
other management tasks 15
P
preparing for deployment 13
S
sample bindings for the Interior Server 20
start application 15
-startApp 54
starting bcappmanage 12
-startTransports 34
-stopApp 55
-stopTransports 35
support, contacting xi
T
technical support xi
TIBCO_HOME viii