Linking

The TUXEDO RM file provides information used by TUXEDO utilities to link TUXEDO servers. Make sure that the RM file contains an appropriate set of specifications for linking Sybase applications.

  1. Use the text editor of your choice to open the $TUXDIR/udataobj/RM file for editing.

  2. Update the file with XA information by adding/verifying entries for Sybase resource managers. For most Sybase applications, including the simprpc.ct sample application, one entry for SYBASE_XA_SERVER is all that you need. If you are going to build and run the rentapp sample, you may want to go ahead and add the second entry for SCRAP_XA_SERVER, as required for rentapp.

Replace $SYBASE/$SYBASE_OCS with the fully qualified path to the Sybase installation directory containing the XA Interface:

SYBASE_XA_SERVER:sybase_TUX_xa_switch:-t -Bstatic -L$SYBASE/$SYBASE_OCS/lib 
-lcobct -lxadtm -lct_r -lcs_r -lcomn_r -ltcl_r -lintl_r -Bdynamic -ldl
SCRAP_XA_SERVER:sybase_TUX_xa_switch:-t -Bstatic -L$SYBASE/$SYBASE_OCS/lib 
-lcobct -lxadtm -lct_r -lcs_r -lcomn_r -ltcl_r -lintl_r -Bdynamic -ldl

NoteEach entry must be a single continuous line.

The cobct libraries are only needed if you are building ESQL/COBOL application servers. If you are not using ESQL/COBOL, you can remove the -lcobct specification.

If you want your TUXEDO servers to load and execute all Sybase libraries dynamically, you can use entries like the following. Dynamic libraries may increase CPU overhead for TUXEDO server execution.

 SYBASE_XA_SERVER:sybase_TUX_xa_switch:-L$SYBASE/$SYBASE_OCS/lib -lxadtm 
-lct_r -lcobct -lcs_r -lcomn_r -ltcl_r -lintl_r
 SCRAP_XA_SERVER:sybase_TUX_xa_switch:-L$SYBASE/$SYBASE_OCS/lib -lxadtm 
-lct_r -lcobct -lcs_r -lcomn_r -ltcl_r -lintl_r

NoteEach entry must be a single continuous line.

You can add a comment line by identifying it with a leading pound sign (#) character.