Editing the XA configuration file

You must customize the XA configuration file for the application environment. Use the text editor of your choice to open the XA configuration for editing. The sample contents of an XA configuration file are as follows:

; Comment line as first line of file REQUIRED!
;
; xa_config - sample xa_config file.
;
; Note that the Adaptive Server names may need 
; to be customized for your environment.

; simprpc.ct sample application entry.

[all]
       logfile="logfile_name"
       traceflags="traceflags"
       properties="name"="value" [, "name"="value"] [...]

 [xa]
       lrm="connection1"
       server="sqlserver"
 
 ; Rentapp sample xa_config entries.
 
 [xa]
       lrm="FLEET_CON"
       server="fleetsrv"
 
 [xa]
       lrm="RESERVE_CON"
       server="rsrvsrv"

NoteThe first line of the xa_config file must be a comment that is denoted by a semicolon (;) in the first character position.

For each additional LRM, create an entry with the following format. Keep the connection1 entry for installation verification.

[xa]
<tab> lrm="connection_name"
<tab> server="adaptive_server_name"
<tab> capabilities="name"="value" [, "name"="value"] [...]
<tab> properties="name"="value" [, "name"="value"] [...]
<tab> options="name"="value" [, "name"=value"] [...]

The connection_name is the symbolic name for the connection between the application and SQL. The adaptive_server_name is the name of the Adaptive Server associated with the connection. adaptive_server_name must correspond to a server name defined in the interfaces file.

See “Additional capabilities, properties, and options” for information a list of capabilities, properties, and options that can be used with the DTM XA Interface.