bea.com | products | dev2dev | support | askBEA |
![]() |
![]() |
|
![]() |
e-docs > WebLogic Server > WebLogic Tuxedo Connector Quick Start Guide > WebLogic Tuxedo Connector Quick Start Guide |
WebLogic Tuxedo Connector Quick Start Guide
|
WebLogic Tuxedo Connector Quick Start Guide
Note: For more detailed information on how to configure the WebLogic Tuxedo Connector in WebLogic Server Release 7.0, see the WebLogic Tuxedo Connector Programmer's Guide.
The following sections describe how to configure WebLogic Tuxedo Connector to allow WebLogic Server Release 7.0 to interoperate with Tuxedo Releases 6.5 and higher:
Configuring the WebLogic Tuxedo Connector
Note: This section summarizes how to configure the WebLogic Tuxedo Connector on a Windows platform. UNIX users can adapt the instructions by making appropriate substitutions such as replacing the "\" with "/" and ".cmd" with ".sh".
This example extends the Tuxedo simpapp application to run over TDomains. This allows clients of the TOUPPER service to run on either Tuxedo or the WebLogic Server examplesServer. The example provides the following services:
The following sections describe how to configure WebLogic Tuxedo Connector using the Administration Console:
Note: For more information on TraceLevel, see Monitoring the WebLogic Tuxedo Connector.
TraceLevel is a WebLogic Server Property. Update the JAVA_OPTIONS variable in the SAMPLES_HOME\server\config\examples\startExamplesServer.cmd file. Example:
JAVA_OPTIONS=-Dweblogic.wtc.TraceLevel=100000
where 100,000 specifies the maximum level of WebLogic Tuxedo Connector tracing.
Use the following steps to build the simpapp example:
Use the following steps to create and configure a WTCServer MBean using the WebLogic Server Console:
Note: When configuring the Network Address for a Local Tuxedo Domain, the port number used should be different from any port numbers assigned to other processes. Example: Setting the Network Address to //mymachine:7001 is not valid if the WebLogic Server listening port is assigned to //mymachine:7001.
Use the following steps to configure a local Tuxedo domain:
Network Address: <the network address and port of your local Tuxedo domain> Example: //123.123.123.123:5678
Use the following steps to configure a remote Tuxedo domain:
Listen Address: <the network address and port of the remote Tuxedo domain> Example: //123.123.123.123:1234
Use the following steps to configure an exported service:
Use the following steps to configure an imported service:
Use the following steps to deploy the WTCServer Mbean to examplesServer:
Register TDOM1 as a WebLogic Server User
Use the following steps to register TDOM1 as a WebLogic Server user:
Use the following steps to configure your Tuxedo domain:
TUXDIR - base directory of the TUXEDO Software
APPDIR - base directory of the sample program
buildclient -o simpcl -f simpcl.c
buildserver -o simpserv -f simpserv.c -s TOUPPER
APPDIR="\home\me\simpapp"
TUXCONFIG="\home\me\simpapp\tuxconfig""
TUXDIR="\usr\tuxedo"
DMTLOGDEV="d:\my_apps\tlog"
AUDITLOG="d:\my_apps\aud"
DMTLOGNAME="DMTLOG_TDOM1"
TDOM1 NWADDR="//TuxedoMachine:1234"
TDOM2 NWADDR="//WTCMachine:5678"
set BDMCONFIG=d:\mydomain\simpapp\bdmconfig
dmloadcf -y dom1config
buildclient -v -f tolower.c -o tolower
tmboot -y
Run each client to demonstrate interoperability between Tuxedo and WebLogic Server.
WebLogic Server to Tuxedo Interoperability
Start a WebLogic Server client from the SAMPLES_HOME\server\src\examples\wtc\atmi\simpapp directory to invoke the TOUPPER EJB and connect to the Tuxedo TOUPPER service. Use the following command:
run.cmd allcaps
The Tuxedo service replies to your WebLogic Server application with:
Returned string is: ALLCAPS
Tuxedo to WebLogic Server Interoperability
Run the tolower client from the Tuxedo simpapp directory to invoke the Tolower EJB and return the results to the client. Use the following command:
tolower ALLSMALL
The WebLogic Server service replies to your Tuxedo client with:
Returned string is: allsmall
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |