Home

 

Adding resource manager configuration information for DB2

 

The next step is to modify the configuration information for the queue manager, as described in Adding configuration information to the queue manager, to declare DB2 as a participant in global units of work.

Figure 1 is a UNIX sample, showing an XAResourceManager entry where the database to be coordinated is called mydbname, this name being specified in the XAOpenString:

Figure 1. Sample XAResourceManager entry for DB2 on UNIX platforms
XAResourceManager:
  Name=mydb2
  SwitchFile=db2swit
  XAOpenString=mydbname,myuser,mypasswd,toc=t
  ThreadOfControl=THREAD

  1. ThreadOfControl=THREAD cannot be used with DB2 versions prior to version 8. It is recommended that you always set ThreadOfControl and the XAOpenString parameter toc to one of the following combinations:

    • ThreadOfControl=THREAD and toc=t

    • ThreadOfControl=PROCESS and toc=p

    If you are using the jdbcdb2 XA switch load file to enable JDBC/JTA coordination, use ThreadOfControl=PROCESS and toc=p.

 

Parent topic:

DB2 configuration


fa13600_


 

Home