|
| 1 | +--- |
| 2 | +title: "Modeling a WTC configuration" |
| 3 | +date: 2021-11-01T10:19:24-05:00 |
| 4 | +draft: false |
| 5 | +weight: 3 |
| 6 | +description: "A domain model with a typical configuration for a WebLogic Tuxedo Connector." |
| 7 | +--- |
| 8 | + |
| 9 | +This sample shows the WDT model for configuring WebLogic Tuxedo Connector (WTC) for both importing services from Tuxedo and exporting EJB methods to Tuxedo as services. |
| 10 | + |
| 11 | +```yaml |
| 12 | + resources: |
| 13 | + # A logical WLS server name for the WLS configuration found on the console under interoperability |
| 14 | + WTCServer: |
| 15 | + myWTCServer: |
| 16 | + Target: admin |
| 17 | + # Exported EJB services to be consumed by Tuxedo services. |
| 18 | + WTCExport: |
| 19 | + 'WTCExportedService-1': |
| 20 | + # The remote name of this service. |
| 21 | + ResourceName: QaWls2Conv2 |
| 22 | + # The name used to identify an exported service |
| 23 | + RemoteName: QaWls2Conv2 |
| 24 | + EJBName: tuxedo.services.QaTux2wlsConvHome |
| 25 | + # The name of the local access point that exports this service. |
| 26 | + LocalAccessPoint: LocalAccessPoint2 |
| 27 | + 'WTCExportedService-2': |
| 28 | + ResourceName: QaWls1Conv2 |
| 29 | + RemoteName: QaWls1Conv2 |
| 30 | + EJBName: tuxedo.services.QaTux2wlsConvHome |
| 31 | + LocalAccessPoint: LocalAccessPoint |
| 32 | + 'WTCExportedService-3': |
| 33 | + ResourceName: QaWlsConvSvc |
| 34 | + RemoteName: QaWlsConvSvc |
| 35 | + EJBName: tuxedo.services.QaTux2wlsConvHome |
| 36 | + LocalAccessPoint: LocalAccessPoint |
| 37 | + # Imported Tuxedo services to be consumed by WLS services. |
| 38 | + WTCImport: |
| 39 | + 'WTCImportedService-1': |
| 40 | + # The name used to identify this imported service. |
| 41 | + ResourceName: CONVSVC |
| 42 | + # The remote name of this service. |
| 43 | + RemoteName: CONVSVC |
| 44 | + # The comma-separated failover list that identifies the remote domain access points through which resources are imported. |
| 45 | + RemoteAccessPointList: RemoteAccessPoint |
| 46 | + # The name of the local access point that offers this service. Matches the Tuxedo domain |
| 47 | + LocalAccessPoint: LocalAccessPoint |
| 48 | + 'WTCImportedService-2': |
| 49 | + ResourceName: QaTux1Conv2 |
| 50 | + RemoteName: QaTux1Conv2 |
| 51 | + RemoteAccessPointList: RemoteAccessPoint |
| 52 | + LocalAccessPoint: LocalAccessPoint |
| 53 | + 'WTCImportedService-3': |
| 54 | + ResourceName: QaTux1Conv3 |
| 55 | + RemoteName: QaTux1Conv3 |
| 56 | + RemoteAccessPointList: RemoteAccessPoint |
| 57 | + LocalAccessPoint: LocalAccessPoint |
| 58 | + # Local access points so that Tuxedo services can act as a client to WLS services. |
| 59 | + WTCLocalTuxDom: |
| 60 | + LocalAccessPoint: |
| 61 | + # The local listen address on the WLS side |
| 62 | + NWAddr: '//access-host:2510' |
| 63 | + # A logical and unique name to identify this local Tuxedo access point |
| 64 | + AccessPoint: LocalAccessPoint |
| 65 | + # The connection principal name used to identify this local Tuxedo access point when attempting to establish a session connection with remote Tuxedo access points. |
| 66 | + AccessPointId: mydomain1 |
| 67 | + LocalAccessPoint2: |
| 68 | + NWAddr: '//access-host:2520' |
| 69 | + AccessPoint: LocalAccessPoint2 |
| 70 | + AccessPointId: mydomain2 |
| 71 | + # Remote access points so that WLS can act as a client to Tuxedo services |
| 72 | + WTCRemoteTuxDom: |
| 73 | + RemoteAccessPoint: |
| 74 | + # The local domain name from which this remote Tuxedo domain is reached. |
| 75 | + LocalAccessPoint: LocalAccessPoint |
| 76 | + # The remote listen address of the Tuxedo domain gateway. |
| 77 | + NWAddr: '//access-host:2500' |
| 78 | + # A logical and unique name used to identify this Tuxedo remote access point |
| 79 | + AccessPoint: RemoteAccessPoint |
| 80 | + # The connection principal name used to identify this remote domain access point when attempting to establish a session connection to local Tuxedo access points |
| 81 | + # This ID needs to be configured as a user in the WLS security realm. |
| 82 | + AccessPointId: domain1 |
| 83 | + RemoteAccessPoint2: |
| 84 | + LocalAccessPoint: LocalAccessPoint2 |
| 85 | + NWAddr: '//access-host:2500' |
| 86 | + AccessPoint: RemoteAccessPoint2 |
| 87 | + AccessPointId: domain1 |
| 88 | + |
| 89 | +``` |
| 90 | +In this configuration, the WTC uses EJB and communicates with remote and local access points. To see other WTC configuration options, use the model help as shown in the following. |
| 91 | + |
| 92 | +```bash |
| 93 | +$ ${WDT_HOME}/bin/modelHelp.sh -oracle_home /tmp/oracle resources:/WTCServer |
| 94 | +``` |
0 commit comments