![]() |
![]() |
|
Installing and Configuring WebLogic Tuxedo Connector
The following sections describe how to install and configure the WebLogic Tuxedo Connector. Installation instructions are provided for Windows NT and UNIX platforms.
Summary of Environment Changes and Considerations
This section provides an overview of the changes you must make to the Tuxedo and WebLogic Server environments before you can start using the WebLogic Tuxedo Connector. These changes are discussed in detail in this chapter.
Tuxedo users need to make the following environment changes:
Note: For more information on DMCONFIG files, see the BEA TUXEDO Domains Guide.
WebLogic Server users need to make the following environment changes:
Note: For more information on creating WebLogic Tuxedo Connector clients or servers, see the WebLogic Tuxedo Connector ATMI Programmer's Guide.
WebLogic Server ThreadPoolSize
The number of client threads available when dispatching services from the gateway may limit the number of concurrent services running. For this release of WebLogic Tuxedo Connector, there is no WebLogic Tuxedo Connector XML configuration file parameter such as MAXDISPATCHTHREADS or MINDISPATCH threads. Use a reasonable thread model when invoking service EJBs. You may need to increase the WebLogic Server threadpool size in theWebLogic Server config.xml file to a large value.
For more information on WebLogic Server performance and tuning, see BEA WebLogic Server Performance and Tuning, Release 6.0.
Installing the WebLogic Tuxedo Connector
You install the WebLogic Tuxedo Connector as a WebLogic Server startup class and a WebLogic Server shutdown class.
Use the following steps to install the WebLogic Tuxedo Connector on your system.
- Windows NT/2000: run the wtc10_win.exe file
Configuring WebLogic Tuxedo Connector for Your Applications
Note: This release of the WebLogic Tuxedo Connector provides only static configuration. If you need to change any parameters in the XML configuration file, the WebLogic Server must be restarted for the changes to take effect. For example, you can not add or remove domain network links, change network addresses, or import or export new services.
This section provides an information on how to configure the WebLogic Tuxedo Connector to allow WebLogic Server applications and Tuxedo applications to interoperate. Use the following main steps to configure the connector:
The WebLogic Tuxedo Connector uses an XML configuration file to describe the Tuxedo /T DOMAINS connections used to link WebLogic Server to Tuxedo.
Note: This file must be installed on all WebLogic Server with JATMI instances.
Note: For more information on configuration file hierarchy and element definitions, see The WebLogic Tuxedo Connector XML Configuration File.
A WebLogic Tuxedo Connector configuration file consists of the following sections:
Required.Specifies the version of XML used.
Example: <?xml version="1.0"?>
Note: You must modify the DOCTYPE with the name of your configuration file and specify the fully qualified path to its location.
Required.The DOCTYPE declaration provides the location of the wtc_config.dtd. When the WebLogic Server is started, the WebLogic Tuxedo Connector XML configuration file is checked against the document type definition (DTD) for errors.
<!DOCTYPE <your configuration file name> SYSTEM "file:<the WTC installation directory>\weblogic\wtc\gwt\wtc_config_1_0.dtd">
Required. WTC_CONFIG element is the root of the configuration file. WTC_CONFIG has two children:
Required. BDMCONFIG describes connectivity information and security protocols used by the WebLogic Tuxedo Connector to process service requests between WebLogic Server and Tuxedo. These configuration parameters are analogous to the interoperability attributes required for communication between Tuxedo domains.
Note: For more information on how to configure BDMCONFIG, see Configuring BDMCONFIG.
Optional. The tBridge is a bi-directional JMS interface to imported Tuxedo services. Configuring this section causes the tBridge to start as part of the WebLogic Server application environment.
Note: For more information on how to configure the tBridge, see Configuring tBridge.
Validate your configuration file using WTCValidateCF. This utility allows you to validate the XML configuration file before booting WebLogic Server.
To validate the XML configuration file, enter the following command:
> java weblogic.wtc.gwt.WTCValidateCF your_XML_configuration_file
where your_XML_configuration_file is the name of your XML configuration file.
Set the WebLogic Server Domain Environment
Update the domain environment of your WebLogic Server application that you will use with the WebLogic Tuxedo Connector. Use the following steps to add the pathname of the jamti.jar file to your application's CLASSPATH.
- NT/2000 users: edit setEnv.cmd
Note: The setExamplesEnv file is used to set the environment for the WebLogic Tuxedo Connector examples provided with your distribution.
set HOME=D:\bea\wlserver6.0sp1
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;D:\bea\wtc1.0\lib\jamti.jar;%HOME%\lib\weblogic_sp.jar;%HOME%\lib\weblogic.jar;%CLASSPATH%
Update the Start Server Script
Update the script that starts WebLogic Server. Use the following steps to add the pathname of the WebLogic Tuxedo Connector jamti.jar file to the CLASSPATH of your WebLogic Server.
- NT/2000 users: edit startWebLogic.cmd
- UNIX users: edit startWebLogic.sh
set CLASSPATH=.;.\lib\weblogic_sp.jar;d:\bea\wtc1.0\lib\jatmi.jar;.\lib\weblogic.jar;
- NT/2000 users: run startWebLogic.cmd
Create a startup class and assign the location of the configuration file as a property of the startup class. Use the following steps to create a Startup Class for a domain:
The Configuration tab is active.
BDMCONFIG: This required argument specifies the location of the WebLogic Tuxedo Connector XML configuration file.
Example: BDMCONFIG=.\config\mydomain\wtc_config.xml
Example: BDMCONFIG=.\config\mydomain\wtc_config.xml,TraceLevel=100000
BDMCONFIG=.\config\mydomain\wtc_config.xml,PasswordKey=mykey
Use the following steps to create a shutdown class for a domain:
Deploy any EJBs that are referenced in the WebLogic Tuxedo Connector XML configuration file.
Restart the Application Server
To make the console changes active, you must shut down and restart the application server.
Check the WebLogic Server log file. If the WebLogic Tuxedo Connector started properly, messages similar to those shown below are displayed:
####<Apr 20, 2001 10:55:08 PM EDT> <Info> <WTC> <mymachine> <myserver> <Thread-1> <system> <> <180001> <Done Loading the XML config file.>
####<Apr 20, 2001 10:55:08 PM EDT> <Debug> <WTC> <mymachine> <myserver> <Thread-2> <> <> <180056> <[/WTCStartup/run/>
####<Apr 20, 2001 10:55:08 PM EDT> <Debug> <WTC> <mymachine> <myserver> <Thread-2> <> <> <180056> <]/WTCStartup/run/05>
####<Apr 20, 2001 10:55:09 PM EDT> <Info> <WebLogicServer> <randyr-nt> <myserver> <Thread-1> <system> <> <000288> <weblogic.wtc.gwt.WTCStartup reports: WTC started...>
Check the WebLogic Server config.xml file. The WebLogic Tuxedo Connector configuration is added to the WebLogic Server StartUp and Shutdown Classes.
<StartupClass Arguments="BDMCONFIG=d:\wtc_load4\examples\simpapp\bdmconfig.xml" ClassName="weblogic.wtc1.0.gwt.WTCStartup" FailureIsFatal="false" Name="MyWTCStartup Class" Targets="myserver"/>
<ShutdownClass Arguments="" ClassName="weblogic.wtc1.0.gwt.WTCShutdown" Name="MyWTCShutdown Class"/>
Note: If your installation is not successful, see Troubleshooting The WebLogic Tuxedo Connector.
Uninstalling the WebLogic Tuxedo Connector
This section describes how to remove the WebLogic Tuxedo Connector from WebLogic Server and from your system.
Removing WebLogic Tuxedo Connector from WebLogic Server
This section provides an information on how to remove the WebLogic Tuxedo Connector using the WebLogic Server Console:
The WebLogic Tuxedo Connector is removed from your WebLogic Server application.
Removing WebLogic Tuxedo Connector from the System
This section provides information on how to remove WebLogic Tuxedo Connector from your system.
Use the following steps to uninstall WebLogic Tuxedo Connector using the GUI.
Use the following steps to uninstall the WebLogic Tuxedo Connector from a command line:
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|