To integrate VisiTransact with databases, the database administrator is responsible for these tasks:For more information about how the VisiTransact Transaction Service handles heuristics, see “Transaction completion”.Before you can use the features in the Session Manager, check with the database administrator that the database has the required software subsets for distributed transaction access. Your database administrator may need to modify your database installation by loading additional libraries, running SQL scripts in the database, modifying configuration parameters for the database server, and installing client-side libraries. For more information, see “XA Session Manager for Oracle OCI, version 9i Client” and “DirectConnect Session Manager for Oracle OCI, version 9i Client”.The profile sets are stored in persistent storage files. You can locate the persistent storage files in the default location, or you can use different locations and then point to these locations using the argument -Dvbroker.sm.pstorePath.We recommend that only one XA Resource Director be deployed for each database for the same OSAGENT_PORT. Having multiple XA Resource Directors on the same OSAGENT_PORT for the same database is inefficient because, although they are successful at committing and rolling back transactions during normal operation, they also duplicate recovery operations if the VisiTransact Transaction Service goes down and comes back up. This results in overloading the VisiTransact Transaction Service with replay requests when it has finished its internal recovery cycle.
The path to the directory where the persistent store files are located. By default, the persistent store files are located in <VBROKER_ADM>/its/session_manager/. The name of the Session Manager Configuration Server you're using. By default, the name assigned to the Session Manager Configuration Server is <host>_smcs where host is the name of the server on which you created the Session Manager connection profile. This can also be thought of as the profile set name.For information about what defaults are used if you do not specify the -Dvbroker.sm.pstorePath parameter, see “Checking for the default path to persistent store files”. For information about how to set up a Session Manager connection profile, see “Using the Session Manager Profile Sets section”.You can find the name of the Resource Director by either using the osfind command, or by looking at the connection profile. To avoid confusion, it is best to name the Resource Director the same name as its connection profile and database name. See “vshutdown” for more details on using the vshutdown command.To start the XA Resource Director without operator intervention, register it with the VisiBroker OAD (Object Activation Daemon). Implementations of the XA Resource Director can be registered using the oadutil reg command-line interface.
See “Using the Session Manager Profile Sets section” for details on how to set up a Session Manager connection profile.The OAD must be running before you can use any of the OAD commands. Refer to Starting the OAD in the VisiBroker for C++ Developer's Guide for instructions on starting the OAD. When registering an object implementation, use the same object name that is used when the implementation object is constructed.The path argument is not required. If you do not specify a path argument, see “Checking for the default path to persistent store files” for information about how the Session Manager and the Session Manager Configuration Server check for the default path and profile set name.See “Starting an XA Resource Director” for a description of the command-line arguments to application for the Session Manager.When using the Session Manager, the -Dvbroker.sm.pstorePath argument is not required. If you do not specify the path argument, the Session Manager and the Session Manager Configuration Server check the following settings in this order:
1 What you set in the command-line argument for -Dvbroker.sm.pstorePath. If you did not specify the path at the command line, it checks:
2 What was set with the VBROKER_ADM environment variable. This is the default when you accept all the defaults during installation. VisiTransact puts the persistent store files in subdirectory its/session_manager under VBROKER_ADM.For more information about how the VisiTransact Transaction Service handles heuristics, see “Transaction completion”.See “Embedding a VisiTransact Transaction Service instance in your application” for more information on embedding a VisiTransact Transaction Service in your application server.By default, the persistent store files are located on disk in the connection profile set subdirectories. You can use the default directory or specify another one. The default path may be overridden during installation, or when using the command line flag -Dvbroker.sm.pstorePath, or with any process that uses the Session Manager (including the XA Resource Director).For information about how the Session Manager and the Session Manager Configuration Server checks for the default path to the persistent store files, see “Checking for the default path to persistent store files”.There is a directory called install under the session_manager directory. Do not change anything in the install directory or add files to it manually. This directory is created automatically when you install VisiTransact.When you create a connection profile with the VisiBroker Console, a corresponding file is created in a subdirectory in the session_manager/config directory. The name of subdirectory file corresponds with the Session Manager Configuration Server's name and can be considered the profile set name. By default, the Configuration Server's name consists of <host>_smcs where host is the name of the machine where the Configuration Server resides. For example, if the machine's name is athena, the Configuration Server is named athena_smcs. In the subdirectory for the Configuration Server, the connection profiles are stored, one per file. You can give the connection profiles significant names like test_oracle_xa. The name you give a connection profile using the VisiBroker Console is automatically assigned to its associated persistent store file. You do not have to manually create the persistent store files—they are created by the Session Manager Configuration Server when you use the VisiBroker Console. VisiTransact adds the extension .cfg to the persistent store file, as shown in the following example.While the persistent store files are binary and cannot be edited by hand, it is possible to copy them to alternate locations as backups. Or, you can copy an entire <configuration_server> subdirectory to another location and rename it with a different profile set name.It is possible to partition connection profile sets so that you have multiple connection profile sets on the same node. Unless there is a strong reason for doing this, it usually has few advantages. If you have more than one profile set on a node, a subdirectory is created in the session_manager/config (even on different nodes) directory for each profile set. Do not create multiple profile sets with the same name since you will not be able to distinguish them from the ones you create with the VisiBroker Console.
• Option 1: One Configuration Server exists on one of the nodes in a connected group of nodes. The on-disk set of persistent store files is shared through a shared file system.
• Option 2: A uniquely-named Configuration Server and its on-disk set of persistent store files exist on each node.
• Option 3: One Configuration Server is shared by a connected group of nodes. There is no shared file system. When the on-disk set of persistent store files changes, you must manually copy the sets of persistent store files from the master location to the other nodes.After installation, the VisiBroker Console can be used to update all Session Manager connection profiles that are used on this network. They will all appear in one set of connection profiles. Application servers which use the Session Manager on other nodes must be configured so that when they start up they look at the shared disk containing the persistent store (using -Dvbroker.sm.pstorePath=<path>). When you use the VisiBroker Console to update connection profiles, the modified profile will be seen by application servers when they start up.
Provide the name of the Session Manager Configuration Service you're using. By default, the name assigned to the Session Manager Configuration Server is <host>_smcs where host is the name of the server on which you created the Session Manager profile.The Session Manager Configuration Server name should be the one used in the command-line argument -Dvbroker.ots.configName when you started the Configuration Server, or the default name which is <host>_smcs.