Setting Up a WebLogic Tuxedo Connector (WTC) Connection

To develop web services or Java applications using Workshop that access Tuxedo services, you must use WebLogic Tuxedo Connector (WTC) to act as the gateway between the environments. WebLogic Tuxedo Connector connects WebLogic Server to Tuxedo. You must configure your environment to connect the two environments using WebLogic Tuxedo Connector.

Tuxedo Environment

In the Tuxedo environment, you must:

  1. Define a Tuxedo domain in the UBBCONFIG and make sure it is available.
    1. You need to define a GROUP in the GROUP section. For example, a GROUP definition should be:
    2. GWGRP LMID=simple GRPNO=2 
      
    3. Add the following in the SERVERS section:
    4. DMADM SRVGRP=GWGRP SRVID=1
      GWADM SRVGRP=GWGRP SRVID=2
      GWTDOMAIN SRVGRP=GWGRP SRVID=3 
      
  2. Define a WSL connection to Tuxedo in the UBBCONFIG and make sure it is available.
    1. You need to define a GROUP in the GROUP section. For example, a GROUP definition should be:
    2. WSLGROUP LMID=simple GRPNO=3 
      
    3. Add the following in the SERVERS section:
    4. WSL SRVGRP=WSLGRP SRVID=1 CLOPT="-A -- -n //machine:port"
       
      
  3. In the DMCONFIG, specify the network address (NWADDR) where WTC is running. The access point ID for the local and remote domain definitions must match the corresponding remote and local access point IDs in the WTC service configuration.
  4. A sample DMCONFIG file follows.

    # DMCONFIG FILE
    
    
    *DM_RESOURCES
    
    VERSION="U22"
    
    
    *DM_LOCAL
    
    <LOCAL DOMAIN NAME> GWGRP=GWGRP2
    ACCESSPOINTID="<LOCAL DOMAIN NAME>"
    AUDITLOG="<APPDIR>\aud"
    BLOCKTIME=20
    DMTLOGDEV="<APPDIR>\tlog"
    DMTLOGNAME="DMTLOG_TDOM1"
    MAXDATALEN=56
    MAXRACCESSPOINT=89
    MAXTRAN=100
    BLOB_SHM_SIZE=1000000
    SECURITY=NONE
    
    
    *DM_REMOTE
    
    <REMOTE DOMAIN NAME> ACCESSPOINTID="<REMOTE DOMAIN NAME>"
    ACL_POLICY="LOCAL"
    CREDENTAIL_POLICY="LOCAL"
    
    
    *DM_TDOMAIN
    
    <LOCAL DOMAIN NAME> NWADDR="//<LOCAL DOMAIN NETWORK ADDRESS>:<PORT NUMBER>"
    
    <REMOTE DOMAIN NAME> NWADDR="//<REMOTE DOMAIN NETWORK ADDRESS>:<PORT NUMBER>"
    
    
    *DM_REMOTE_ERVICES 
    
  5. Run the following commands to boot the Tuxedo application:
  6. tmloadcf -y <name>.ubb
    dmloadcf -y domconfig
    tmboot -y 
    

    You should now have the Tuxedo application up and running.

WebLogic Environment

To configure WebLogic Tuxedo Connector, start WebLogic Server and use the New Control dialog to configure a WTC service. For instructions on how to configure the WTC service, refer to How Do I: Configure a WTC Service.

Related Topics