WebLogic Tuxedo Connector Quick Start Guide
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Note: For more detailed information on how to configure the WebLogic Tuxedo Connector for this WebLogic Server Release, see the WebLogic Tuxedo Connector Administration Guide.
The following sections describe how to use the WebLogic Server console to configure WebLogic Tuxedo Connector to allow WebLogic Server to interoperate with Tuxedo Releases 6.5 and higher:
For this release of WebLogic Tuxedo Connector (WTC), samples are available on the BEA dev2dev website under Code Library. Create a wtc
directory within the samples directory of your WebLogic Server installation. Download the WTC samples to this directory. To run the samples referenced in this document, you must download the simpapp and simpserv samples from the WebLogic Server 9.0 Code Library postings.
http://dev2dev.bea.com/code/wls.jsp
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 Tuxedo Domains (TDomains). This allows clients of the TOUPPER
service to run on either the Tuxedo server or the WebLogic Server examplesServer
. The example provides the following services:
TOUPPER
: A Tuxedo service that converts a string to upper case. A WebLogic Server client invokes the TOUPPER EJB
and connects to the Tuxedo TOUPPER
service. Tolower
: A service implemented by an EJB in WebLogic Server. The client for the Tolower
service runs on Tuxedo.The following sections describe how to configure WebLogic Tuxedo Connector using the Administration Console:
Note: You may want to enable tracing to monitor WebLogic Tuxedo Connector. See Monitoring the WebLogic Tuxedo Connector.
Use the following steps to build the simpapp
example:
SAMPLES_HOME\domains\examples\setExamplesEnv.cmd
file. SAMPLES_HOME\server\examples\src\examples\wtc\atmi\simpapp
directory. wtc_toupper.jar
file using ant. This will deploy the EJB on WebLogic Server. Enter the following command: ant
SAMPLES_HOME\server\examples\src\examples\wtc\atmi\simpserv
directory. wtc_tolower.jar
file. This will deploy the EJB on WebLogic Server. Enter the following command: ant
Use the following steps to create and configure a WTC service using the WebLogic Server Console:
Note: When configuring the Network Address for a local access point, 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 access point:
Use the following steps to configure a remote Tuxedo access point:
Use the following steps to configure an exported service:
Use the following steps to configure an imported service:
Use the following steps to register TDOM1 as a WebLogic Server user:
Use the following steps to configure your Tuxedo domain:
buildclient -o simpcl -f simpcl.c
buildserver -o simpserv -f simpserv.c -s TOUPPER
ubbdomain
and dom1config
files from the SAMPLES_HOME\server\examples\src\examples\wtc\atmi\simpapp
directory to your Tuxedo simpapp
directory.tolower.c
file from the SAMPLES_HOME\server\examples\src\examples\wtc\atmi\simpserv
directory to your Tuxedo simpapp
directory. APPDIR="\home\me\simpapp"
TUXCONFIG="\home\me\simpapp\tuxconfig""
TUXDIR="\usr\tuxedo"
DMTLOGDEV="d:\my_apps\tlog"
AUDITLOG="d:\my_apps\aud"
TDOM1 NWADDR="//TuxedoMachine:1234"
TDOM2 NWADDR="//WTCMachine:5678"
set BDMCONFIG=d:\mydomain\simpapp\bdmconfig
dmloadcf -y dom1config
buildclient -f tolower.c -o tolower
tmboot -y
Run each client to demonstrate interoperability between Tuxedo and WebLogic Server.
Start a WebLogic Server client from the directory location to which you downloaded the samples. For example, SAMPLES_HOME\server\examples\src\examples\wtc\atmi\simpapp
directory to invoke the TOUPPER EJB
and connect to the Tuxedo TOUPPER
service. Use the following command:
ant simpapp
The Tuxedo service replies to your WebLogic Server application with:
Buildfile: build.xml
simpapp:
run_client:
[java] Beginning statefulSession.Client...
[java] Creating Toupper
[java] converting HelloWorld
[java] converted to: HELLOWORLD
[java] End statefulSession.Client...
BUILD SUCCESSFUL
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
![]() |
![]() |
![]() |