5.4.5 Step 5: Create a Configuration File
You need to add the following information to the configuration file for a transactional Oracle Tuxedo CORBA application.
- In the
SERVERS
section specify the transactional group for the CORBA server application and for the application that manages the database. - In the
GROUPS
section define the server group. In theOPENINFO
andCLOSEINFO
parameters of theGROUPS
section, include information to open and close the XA resource manager for the database. You obtain this information from the product documentation for your database. Note that the default version of thecom.beasys.Tobj.Server.initialize()
operation automatically opens the resource manager. - Include the pathname to the transaction log (
TLOG
) in theTLOGDEVICE
parameter. For more information about the transaction log, see Administering a Oracle Tuxedo Application at Run Time in the Oracle Tuxedo online documentation.
The following code snippet illustrates the portions of the configuration file that define this information for the Transactions sample application.
*RESOURCES
IPCKEY 55432
DOMAINID university
MASTER SITE1
MODEL SHM
LDBAL N
SECURITY APP_PW
*MACHINES
BLOTTO
LMID = SITE1
APPDIR = C:\TRANSACTION_SAMPLE
TUXCONFIG=C:\TRANSACTION_SAMPLE\tuxconfig
TLOGDEVICE=C:\APP_DIR\TLOG
TLOGNAME=TLOG
TUXDIR="C:\tuxdir"
MAXWSCLIENTS=10
*GROUPS
SYS_GRP
LMID = SITE1
GRPNO = 1
ORA_GRP
LMID = SITE1
GRPNO = 2
OPENINFO = "ORACLE_XA:Oracle_XA+SqlNet=ORCL+Acc=P
/scott/tiger+SesTm=100+LogDir=.+MaxCur=5"
OPENINFO = "ORACLE_XA:Oracle_XA+Acc=P/scott/tiger
+SesTm=100+LogDir=.+MaxCur=5"
CLOSEINFO = ""
TMSNAME = "TMS_ORA"
*SERVERS
DEFAULT:
RESTART = Y
MAXGEN = 5
TMSYSEVT
SRVGRP = SYS_GRP
SRVID = 1
TMFFNAME
SRVGRP = SYS_GRP
SRVID = 2
CLOPT = "-A -- -N -M"
TMFFNAME
SRVGRP = SYS_GRP
SRVID = 3
CLOPT = "-A -- -N"
TMFFNAME
SRVGRP = SYS_GRP
SRVID = 4
CLOPT = "-A -- -F"
TMIFRSVR
SRVGRP = SYS_GRP
SRVID = 5
UNIVT_SERVER
SRVGRP = ORA_GRP
SRVID = 1
RESTART = N
ISL
SRVGRP = SYS_GRP
SRVID = 6
CLOPT = -A -- -n //MACHINENAME:2500
*SERVICES
For information about the transaction log and defining parameters in the Configuration file, see Oracle® Tuxedo Application Configuration Guide in the Oracle Tuxedo online documentation.
Parent topic: Development Steps